I have a universal app. Will I be able to use the UIPopover View Controller universally (for both iPad and iPhone)?
Asked
Active
Viewed 284 times
0
-
I'm interested why is this questios has downvoted?! – iWizard May 22 '13 at 21:30
-
@rmaddy. How do you know if there was "complete lack of effort to find my own answer"? There should be the option to down-vote comments for being presumptuous. – AlvinfromDiaspar May 27 '13 at 22:31
-
Since the answer is clearly given in the Overview section of the reference docs for `UIPopoverController`, since stackoverflow showed you some related questions giving the answer before you even submitted your question, and since a few seconds with Google would have turned up countless answers, I think it is safe to say that there was no effort to find your own answer. I'll admit I could have worded my original comment better but it's still a valid point. – rmaddy May 28 '13 at 01:13
2 Answers
8
No. It is only supported on iPad. There are third party widgets that emulate it, but the Apple one will throw an exception if you use it on iPhone.
From the class reference:
Popover controllers are for use exclusively on iPad devices. Attempting to create one on other devices results in an exception.
See CocoaControls for some substitutes.

Aaron Brager
- 65,323
- 19
- 161
- 287
-
-
1
-
I know. I was refering to "There are third party widgets that emulate it, but the Apple one will throw an exception if you use it on iPhone" – Obj-Swift May 22 '13 at 21:41
-
"it" refers in both cases to the UIPopoverController, not the third party widgets. – Aaron Brager May 22 '13 at 22:19
2
As Aaron has already pointed out, UIPopoverView is available only for iPad, I know from experience that if you implement your own without following the HIG, apple will reject your app, in my case my menu didn't have an arrow pointing to the element triggering it to appear.

Emanuel
- 1,981
- 1
- 20
- 28