How can I dynamically hide a button from a view?

If you’re trying to hide a UIBarButtonItem, you’ll actually have to modify the contents of the parent bar. If it’s a UIToolBar, you’ll need to set the bar’s items array to an array that doesn’t include your item.

NSMutableArray     *items = [[myToolbar.items mutableCopy] autorelease];
[items removeObject: myButton];
myToolbar.items = items;

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)