Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Making uibarbuttonitems fade

I have a navigation bar that is set up and controlled completely with code. So it does not show up in IB. I have a button appear by "self.navigationitem.rightbarbutton = myButton;" An I make it go away by setting it equal to NIL. What I am wondering is how could I make it fade in and out?

like image 642
user804306 Avatar asked Aug 10 '11 02:08

user804306


1 Answers

I found what worked best for me

[self.navigationItem setRightBarButtonItem:myButton animated:YES];

And then

[self.navigationItem setRightBarButtonItem:nil animated:YES];

To make it fade out.

like image 60
user804306 Avatar answered Nov 09 '22 18:11

user804306