UIPopoverController for iphone not working?

You CAN use popoverController in iPhone apps.

1. Create a category

// UIPopoverController+iPhone.h file
@interface UIPopoverController (iPhone)
+ (BOOL)_popoversDisabled;
@end

// UIPopoverController+iPhone.m file
@implementation UIPopoverController (iPhone)
+ (BOOL)_popoversDisabled {
    return NO; 
} 
@end

2. Import it to your class and use popover in iPhone as usual.

But remember that this is private method and Apple can reject your app. But I know people who use this normally and Apple published their apps.

Leave a Comment