Navigation Bar is in Landscape while View is in Portrait - swift

I am trying to set up some views on the storyboard.
Now I am stuck with displaying the navigation bar in the correct way.
When the corresponding view opens (in Portrait mode) the Navigation Bar opens in Landscape Mode.
How can I set the navigationBar to stick with the screen Orientation and Size?

I am unsure what you mean, are you using the simulator or a Device ? Make sure you add constraints to pin the bar to the top of the view controller or embed your view controller in a navigation controller.

Related

iOS - iPhone app consists of tab bars containing navigation bars.. overlaying a modal view makes area over tabset hard to hit

I have an iphone app consisting of a tabbar controller in the main.xib, where the tab bar controller contains navigation controllers, which are associated with corresponding view controllers. I assume this is pretty standard.
If I present a modal view controllers view from a navigation controller contained in this hierarchy, the view owned by this view controller pops up as you would expect. However, Ive noticed if I have controls (such as a button) at the very bottom of this 'modally presented' view it is rarely detecting taps. It seems as though the tabset underneath is blocking the touches. Note that when I present the modal view controllers view it fills the visible screen, it isn't sliding up from underneath the tab set.
I thought this tababar controller->navigation controller hierarchy was pretty standard, shouldn't I be able to present a modal view controller from a navigation controller in this set up without issue? I have also tried to present the modal view controller from the tab bar controller, with the same effect.
How do I present a modal view controller in an app with the tabbar controller->navigation controller hierarchy such that the lowest portion of that view can detect touches?
thanks for any help!
Check out the first answer by Harry, I believe this set-up is related to your situation. Post an update and let us know if this helps: UIView doesn't resize to full screen when hiding the nav bar & tab bar
Also, what code are you using to present the modal view?

SplitViewController Portrait PopOver Issue

When I switch my iPAD to portrait mode the navigation bar buttons button appears correctly. Now If i choose a table row from popOver View and push a new screen for the master and detail view the navigation bar button disappears and wont appear until I rotate the device to Landscape and then back to Portrait. Does anyone have a idea how to fix this ?
Perhaps you are not setting the delegate in the UISplitViewController
self.delegate = secondViewController;

iOS Navigation Bar in tab bar controller doesn't rotate properly

I have a tab bar controller whose 2 tabs both contain views with navigation bar controllers. When I display the app in portrait everything is fine, however when I display just the first tab in portrait, then rotate the device and display the second tab in landscape, the navigation bar of the second view stretches while the first stays in 'portrait size'. I have been able to replicate this in a basic project that I've uploaded to rapid share
I am guessing this is a easy fix.
Thanks in advance!
Found the answer. I had a view for each tab with a navigation controller within that view. By changing the tab view to a navigation controller instead, resolved this error.
Basically, my original setup was tab navigator -> view -> navigation controller
This I changed to tab navigator -> navigation controller
It works correctly now.

iphone navigation controller - transition between portrait and landscape view controllers

In my iphone app, i've two view controllers. First one is a portrait and second one is landscape.
When app is started, it will show the portrait view. On click of a button in portrait view, the view transitions to landscape view. Here, i'm using navigation controller.
If both the views are portrait, pushing the next view via navigation controller won't be a problem. How can I achieve transition between portrait and landscape views using nav controller.
Note that status bar is visible and nav bar is hidden.
I would suggest you to use the following instead of pushViewController
[self presentModalViewController:aController animated:YES];
This is the only solution i guess. If you are navigating further from the LandScape mode put the aController inside the UINavigationController and Present the NavController the same way as shown above.

iOS: Navigation Controller title bar shrinks in landscape mode when compiled, but not in Interface Builder

I'm trying to make an iPhone SDK 4.1 app, and I'm having some trouble with my Navigation Controller. When I set my app to portrait mode, everything looks like it should. However, when I set the initial orientation to landscape in my plist file and add the shouldAutorotateToInterfaceOrientation function to my primary view controller, the Navigation Controller's title bar shrinks when compiled! For some reason, this change isn't reflected in Interface Builder, making it difficult to design my layout. Surely there's something I'm missing?
Screenshots: