2

I have created one UIPopoverController. Here, I can display the popover fine where the content view is a UITableView. When the popover is visible, I have to press a button and reload the tableview.

After that the tableview may increase it's height. I want to resize the popover when reload is performed.

Dimil T Mohan
  • 129
  • 2
  • 10

1 Answers1

0

In your ViewController.m file, add the following method:

- (void)viewWillLayoutSubviews{
self.contentSizeForViewInPopover = CGSizeMake(tableInPopover.frame.size.width,tableInPopover.frame.size.height) ;}

Hope this helps

NaveenRaghuveer
  • 124
  • 1
  • 8