Reputation: 203
I came up with a problem that i crated a PopViewController with tableview cells,But the height is too large,i want to display only 5 strings in the table cells,so my requirement is how to reduce the height of the PopViewController. Thanks in advance
Upvotes: 0
Views: 134
Reputation: 2286
In the controller of the table view, add the following line in viewWillAppear:
self.contentSizeForViewInPopover = CGSizeMake(320.0, 400.0);
Upvotes: 2