I'm trying to hide my Navigation and Tool bars on tap. Similar to the way the Photos application works.
Any pointers would be greatly appreciated.
Thanks!
I'm trying to hide my Navigation and Tool bars on tap. Similar to the way the Photos application works.
Any pointers would be greatly appreciated.
Thanks!
Try to animate the y value of UINavigationBar and UIToolBar like this
[UIView beginAnimations: nil context:NULL];
[UIView setAnimationDuration:0.4];
[UIView setAnimationDelegate: self];
CGRect rect = self.navigationController.navigationBar.frame;
rect.origin.y = -40;
self.navigationController.navigationBar.frame = rect;
[UIView commitAnimations];
Hope this helps you too.
A.
This works too :)
[self.navigationController setNavigationBarHidden:YES animated:YES];