Reputation: 60919
I have a NIB with a UIView that contains some UILabels, UIButtons etc. and a UIViewController that is loading a UITableView from a detached NIB.
I want the UITableView in the UIViewController to be positioned below my UIView, but whenever I add it in Interface Builder it takes up the whole screen, and my UIView becomes part of the UIViewController.
How can I make sure the UITableView in my UIViewController appears below the UIView?
Upvotes: 0
Views: 761
Reputation: 27601
I want the UIViewController to be positioned below my UIView
What you mean is you want the UIViewController
's view positioned below your existing UIView
. View controllers do not show up on screen themselves.
Create a new UIView
instance in your nib, position it where you want, and assign it to be the view for the view controller.
Upvotes: 2