Users Pricing

forum

home / developersection / forums / how to use table view controller with small sized in ios?

How to use table view controller with small sized in iOS?

Anonymous User 1638 09 Dec 2015

I have created an app using UITableViewController, its method initWithStyle: automatically creates the underlying UITableView with- according to the documentation - "the correct dimensions".

Now, my problem is that these "correct dimensions" seem 320 x 460 (default screen size of iPhone), but I'm pushing this TableView / Controller pair into a UINavigationController which is itself contained in a UIView, which itself is about half the height of the screen.

Now, my question arises that what is the proper way to set a table view controller to resize its component UITableView to a specified rectangle?


I am a content writter !


1 Answers

Tarun Kumar 10 Dec 2015 Accepted Answer