ios - How to remove view on touch? -


i have button hooked in storyboard method onbuttonpress. in method call [pressedbutton removefromsuperview] view not removed. have tried [_scrollview setneedsdisplay]; , [_scrollview setneedslayout]; no luck. assuming restriction on being able remove button have pressed. there way can signal view controller call method in future remove button?

you can hide it,

- (ibaction)celebritiesbuttonpressed:(id)sender {   self.button.alpha = 0;   //[self.peoplebutton removefromsuperview]; //as intend }