user1913523
user1913523

Reputation: 69

How to remove a NSButton from a NSCustom view programmatically?

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

Answers (1)

iPatel
iPatel

Reputation: 47099

[YourButton removeFromSuperview];

or

Try

[YourButton setHidden:YES];

this might solve your problem :)

Upvotes: 1

Related Questions