Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make a Navigation bar transparent and fade out like in the photo app in the iPhone

i am new to iPhone Programming ...can anybody help me out please..

i want to develop an app like photo app in iPhone..

How to make the naveigation bar and toolbar transparent and fadeout like in photo app in iPhone

Thank u ..

like image 460
rockey Avatar asked Jun 23 '10 22:06

rockey


1 Answers

UINavigationBar inherits from UIView, so you can use UIView's animation methods to fade it out by setting the alpha property to 0. This should work:

[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:0.5];
[navigationBar setAlpha:0.0];
[UIView commitAnimations];
like image 169
indragie Avatar answered Oct 18 '22 20:10

indragie