andrewz
andrewz

Reputation: 5220

In iOS9 Interface Builder how can I keep my view below the status bar?

In IB I have this scene in my storyboard enter image description here

And when ran in simulator it looks exactly like this enter image description here

Obviously I would like the search bar vertically below the status bar. How can I accomplish that? My UITableViewController is embedded inside a UITabBarController btw.

I looked at this technical Q&A QA1797 (link), but it talks about iOS 7, and according to this document it should work for UITabBarController, but in my case it does not.

I am using XCode 7.0 (7A220)

UPDATE 1: UITableView not draggable enter image description here

UPDATE 2: Document Outline view of my Search Scene enter image description here

UPDATE 3: Size inspector for Table (UITableView) showing that the Size X/Y is not editable (I don't know why), and so I can't reposition the Table enter image description here

Upvotes: 0

Views: 443

Answers (1)

Bankim
Bankim

Reputation: 254

The best solution is embed the initial view controller of your storyboard into a navigation controller.

Steps: 1. Select the initial view controller from storyboard. 2. Then go to editor -> Embed in Navigation Controller.

Now run and you'll see problem is resolved. enter image description here

Upvotes: 2

Related Questions