开发者

Present UISplitViewPopover programmatically

开发者 https://www.devze.com 2023-03-24 07:54 出处:网络
I was wondering if there was a sort of simple way to (when the device is in the correct Portrait orientation), to programmatically display the RootViewCont开发者_运维知识库roller in the UIPopoverContr

I was wondering if there was a sort of simple way to (when the device is in the correct Portrait orientation), to programmatically display the RootViewCont开发者_运维知识库roller in the UIPopoverController of the UISplitViewController.


You have the UIBarButtonItem that the split view gave you in it's delegate callback. You can use that one:

[barItem.target performSelector:barItem.action withObject:barItem];

Its a hack, but works. Please file a request at http://bugreport.apple.com for a better solution.

0

精彩评论

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