Quote:
Originally Posted by skunkio
I have the same need and i solved with a simple solution.
In my code i just enable/disable a UIBarButtonItem.
I declared an IBOutlet in my .h file
Code:
IBOutlet UIBarButtonItem *my_button;
In IB i linked the button with my previous declaration and within the .m file i do
Code:
//to disable
[my_button setEnabled:FALSE];
//to enable
[my_button setEnabled:TRUE];
Seems work fine
Ciao,
saluti
|
What about to hide? how we can hide UIBarButtonItem?
Any idea ?