I need to know by notification or whatever when the user press outside the popover frame.
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Why don’t you implement
UIPopoverControllerDelegateprotocol?Suppose you have a controller called
MyControllerthat displays the popover.In MyController.h says that it implements
UIPopoverControllerDelegatelike the following;Now, in .m somewhere you could display the popover and set its delegate to
self(it means thatMyControllerwill be the delegate for the popover).At this point, you could implement the methods that are listed in that protocol (you must implement the required one, in general). In your case you could implement the following:
For further info see UIPopoverControllerDelegate class reference.
Hope that helps.