Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Popover controller for iPhone [closed]

I am working on iPhone application. And I want to create popover controller for my app. It is only available for iPad applications. Please help.

like image 643
user2618646 Avatar asked Aug 13 '13 09:08

user2618646


1 Answers

You can do it, i have live app with with popover in iPhone. Just You have to create interface for popover

NSObject+UIPopover_Iphone.h

#import <Foundation/Foundation.h>

@interface UIPopoverController (overrides)
+(BOOL)_popoversDisabled;
@end

NSObject+UIPopover_Iphone.m

#import "NSObject+UIPopover_Iphone.h"

@implementation UIPopoverController (overrides)

+(BOOL)_popoversDisabled
{
    return NO;
}

@end

and now just import NSObject+UIPopover_Iphone.h in your Viewcontroller.h

for Reference check this Link

like image 127
Toseef Khilji Avatar answered Oct 06 '22 01:10

Toseef Khilji