UIPopoverController automatically resizing to max height on pushViewController

后端 未结 13 654
感情败类
感情败类 2020-12-07 10:45

I have a popover containing a UINavigationController. I can display the popover fine, and it contains the navController just fine. The navController contains a tableView a

13条回答
  •  抹茶落季
    2020-12-07 11:16

    Much like handling it in viewWillAppear, another way to deal with this is to override contentSizeForViewInPopover. Very terse:

    -(CGSize)contentSizeForViewInPopover
    {
        return self.view.bounds.size;
    }
    

提交回复
热议问题