problem in setting PopoverContentSize

后端 未结 5 843
醉酒成梦
醉酒成梦 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:01

    I noticed you have a UIViewController called popover which should be shown inside the popoever that you have referenced as mpopover navigate to that class and in the ViewDidLoad Method of the ViewController cycle make sure to add the following code

    self.contentSizeForViewInPopover = CGSizeMake(400, 90); // or Any size you like
    

    ...&...

提交回复
热议问题