开发者

Application Terminates due to Popover

I am working on IPad application. As per requirement On detail page of SplitviewController I am adding one customized UIBarButtonItem leftbar button on navigation bar.

Now in Portrait mode when I click this button I am getting following error

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Popovers cannot be presented from a UIBarButtonItem that is not i开发者_如何转开发n a toolbar or navigation bar already.'

Can one please help on this ????

Thanks,

Sagar


You most likely didn't declare your UIButtonItem variable correctly. Make sure it matches everywhere throughout your code.

For more info check out my blog post.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜