开发者

Present UISplitViewPopover programmatically

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜