Reputation: 69
How to remove a NSButton from a Customview programmatically ? I used the below method but it didn't work .
[button removeFromSuperview];
Upvotes: 0
Views: 397
Reputation: 47099
[YourButton removeFromSuperview];
or
Try
[YourButton setHidden:YES];
this might solve your problem :)
Upvotes: 1