Reputation: 185
I want to hide this back button drop down every time I swipe rightwards.How is this possible?
I need a code which I can use it in AppDelegate so that i can use it globally rather than changing it for every ViewControllers.
Upvotes: 2
Views: 79
Reputation: 978
Select your Navigation Controller and Uncheck Shows Navigation Bar as per below Image
Upvotes: 2
Reputation: 17007
Well this code works in Appdelegate
or in any ViewController
.
In action of swipe rightwards add following line of code:
[[self navigationController] setNavigationBarHidden:YES animated:YES];
If you want to show it again use following code in appropriate method:
[[self navigationController] setNavigationBarHidden:NO animated:YES];
Upvotes: 0