I use the following code in my app when user click on a button :
[self.navigationController setNavigationBarHidden:NO animated:YES];
The appearance animates normally on iPhone but not on iPad. Do you know why ?
I use the following code in my app when user click on a button :
[self.navigationController setNavigationBarHidden:NO animated:YES];
The appearance animates normally on iPhone but not on iPad. Do you know why ?
The best solution here may be to put
self.navigationBar.hidden = NO;
in the-viewWillAppear:
method of the UIViewController where you dont wish to have the bar perpetually hidden.EDIT:
i found this, may help you;
This code is working fine for me. I try with navigation templete for iphone and then that project upgrade for the ipad for two specific device. and run in ipad. Then navigation bar is hide/show with same animation like iphone app does.
try this. May you get more idea.
Thanks,
MinuMaster
Do check the other code you have written along with the properties of your view. I use this fragment in my universal apps and it works fine on both the iPhone and iPad. So looks like some other setting (probably autosizing properties??) of your views are causing this.
Are you sure you're invoking this in the context of the Main Thread ?