UIPopoverController automatically resizing to max height on pushViewController

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

    In response to graphical glitches with animations:

    The UIPopoverController animations conflict with the UINavigation controllers animations, if you create the popover with a UINavigationController inside it. It results in graphical glitches when animating. To fix the issue, set animated parameter to false when pushing other controllers, or when displaying the toolbar.

    Pushing View Controllers:

    [self.navigationController pushViewController:detailViewController animated:NO];
    

    Making the Toolbar visible:

    [[self navigationController] setToolbarHidden:NO animated:NO]; 
    

    Setting the animated:NO will make the animations look correct in a UIPopoverController.

提交回复
热议问题