Is it possible to change the frame of UITableViewController’s UITableView frame inside Interface Builder? I want to make my table, which I instantiate in IB, a little bit narrower.
Is it possible to change the frame of UITableViewController’s UITableView frame inside Interface Builder?
Share
You can change it in IB but unless you customize your view controller somehow, it will set it be full screen (module enclosing controllers like nav, tab bar, split view, etc.) That’s just the way view controllers work.
From the Apple docs:
You can create another
UIViewto hold your table view and then have more control over the table view sizing, But then you won’t be a table view controller and will have to implement some of the things that table view controller provides you, e.g.,deselectRowAtIndexPathonviewDidAppear.