nipin 555
nipin 555

Reputation: 203

Change height of iPad PopOvercontroller

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

Answers (2)

FKDev
FKDev

Reputation: 2286

In the controller of the table view, add the following line in viewWillAppear:

self.contentSizeForViewInPopover = CGSizeMake(320.0, 400.0);

Upvotes: 2

Manny
Manny

Reputation: 6287

Try setting popoverContentSize

Upvotes: 0

Related Questions