UIPopoverController automatically resizing to max height on pushViewController

后端 未结 13 656
感情败类
感情败类 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:28

    For IOS5

    I recommend you do it in:

    - (void)viewDidLoad {
        [super viewDidLoad];
    
        CGSize size = CGSizeMake(320, 480); // size of view in popover
        self.contentSizeForViewInPopover = size;
    
    }
    

提交回复
热议问题