0

I have a universal app. Will I be able to use the UIPopover View Controller universally (for both iPad and iPhone)?

rmaddy
  • 314,917
  • 42
  • 532
  • 579
AlvinfromDiaspar
  • 6,611
  • 13
  • 75
  • 140
  • 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 Answers2

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
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.

iOS Human Interface Guidelines

Emanuel
  • 1,981
  • 1
  • 20
  • 28