Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

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