Reputation: 14040
I am working with a TabBarController >> NavBarController UI. One of my UIViewControllers has a UIScrollView in it with some text (UITextField) in it. Problem is, the uppermost text in the UIScrollView is covered by the NavBar. How do I fix this? I am trying to manually adjust stuff in IB with mixed results but I want a more CERTAIN solution.
Upvotes: 0
Views: 2804
Reputation: 27601
The problem is that your view is too big, and it's being positioned under the nav bar.
To fix, open up the .xib with your container view and/or your UIScrollView
in Interface Builder, and Bring up the Attributes Inspector (Cmd-1).
Then do one of the following:
or
Then you need to make sure that you've set the root view controller for that tab to "Resize View from NIB". If you've instantiated a UINavigationController
instance in Interface Builder (say, in your MainWindow.xib), you can set the checkbox there.
Upvotes: 2