开发者

UIPopovercontroller resizes after pushing a new View controller to the navccontroller

I have a Popovercontroller where I have a table view and a detail disclosure button. On tap of the button I need to drill down to the next level.

I need to give the user a consistent width.

I set self.contentSizeForViewInPopover = CGSizeMake(1024,768);//max number in the viewDidLoad n ViewWillAppear of the the View COntr开发者_如何转开发oller to be pushed. But, even then it resizes to a random width may be 600. Any one has/solved this issue?

Original WIdth

Width after pushing a new VC


I think Apple updated the docs on this property since you posted your question. Now, according to the UIViewController docs for the contentSizeForViewInPopover property:

"The recommended width for popovers is 320 points. If needed, you can return a width value as large as 600 points, but doing so is not recommended."

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜