开发者

Application Terminates due to Popover

开发者 https://www.devze.com 2023-01-07 07:28 出处:网络
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.

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

精彩评论

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