Hi,
Inside the rootviewcontroller of a navigation controller, I am calling a modal view controller, like this:
The problem is that the navigationbar of the modal view controller (picker in my case) goes under the existing navigation bar, instead of on top of it.
I tried everything but I can't figure out what is the problem. Any ideas?
Thank you.
Inside the rootviewcontroller of a navigation controller, I am calling a modal view controller, like this:
Code:
picker.navigationBar.barStyle = UIBarStyleDefault;
[self presentModalViewController:picker animated:YES];
The problem is that the navigationbar of the modal view controller (picker in my case) goes under the existing navigation bar, instead of on top of it.
I tried everything but I can't figure out what is the problem. Any ideas?
Thank you.