iOS popoverController

chhoda

macrumors 6502
Original poster
Oct 25, 2008
285
1
UIPopOverController works in iPhone ? I got it to work in ipad, but does not work in iPhone !

Documentation is silent !

similarly presentModalViewController works only in iPad not in iPhone !
 

naphatkrit

macrumors member
Jul 18, 2011
38
0
I'm no expert, but I believe popover is iPad only. For modal view controller, it should work on iPhone. What happens when you try to present the modal view? Nothing at all?
 

naphatkrit

macrumors member
Jul 18, 2011
38
0
If you're developing for iOS 5, try PresentViewController instead. Also, try adding an nslog right above the present modal view line to see if the code is being run.
 

ppilone

macrumors 6502
Jan 20, 2008
361
0
You could "roll your own" for iPhone. Apple uses a popover in some iWork apps for iPhone. However, I don't think it's actually a UIPopoverController.
 

dejo

Moderator
Staff member
Sep 2, 2004
15,981
450
The Centennial State
As far as I know it doesn't work on iPhone, since he wants to show it on an iPhone, he will have to result into something else, i'm sorry for that.
presentModalViewController works on all devices. Realize we are no longer talking about UIPopoverController here.
 

naphatkrit

macrumors member
Jul 18, 2011
38
0
Maybe the problem is the view he is trying to present modally is the uipopovercontroller? In that case he should try to present whatever is the view controller in the popover controller instead.
 

jnoxx

macrumors 65816
Dec 29, 2010
1,343
0
Aartselaar // Antwerp // Belgium
presentModalViewController works on all devices. Realize we are no longer talking about UIPopoverController here.
Why do I keep missing the obvious blind spots (was quite late at my place, mijn excuses).
I should read the topics more thorough.
What I can suggest, when a ModalViewController is not being called in iPhone, but does in iPad, is the pointer you are calling it on, will be probably be void.
that means, you should try calling it on another pointer.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.