Sagar...
Sagar...

Reputation: 1062

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 in a toolbar or navigation bar already.'

Can one please help on this ????

Thanks,

Sagar

Upvotes: 3

Views: 844

Answers (1)

Ben Coffman
Ben Coffman

Reputation: 1740

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.

Upvotes: 1

Related Questions