problem in setting PopoverContentSize

后端 未结 5 827
醉酒成梦
醉酒成梦 2021-01-14 12:41

I am not able to set the contentsize with size(650,400).But even i create popoverController with same width & height it is getting created.

No idea what is worry

5条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-14 13:03

    Consider using:

    -(BOOL)splitViewController:(UISplitViewController *)svcontroller shouldHideViewController:(UIViewController *)vc inOrientation:(UIInterfaceOrientation)orientation 
    {
        return NO;
    }
    

    This will present the popover in portrait and landscape orientations.

提交回复
热议问题