Manish Ranjan
Manish Ranjan

Reputation: 43

Using popover control in iPhone

    pop = [[UIPopoverController alloc] initWithContentViewController:popoverView]; 
    pop.delegate = self;  //optional
    CGSize size = CGSizeMake(300, 100); // size of view in popover…V2
    pop.popoverContentSize = size;

    [pop presentPopoverFromRect:control.frame inView:self.view permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];

Youtube link: http://www.youtube.com/watch?v=1iykxemuxbk It works fine in simulator, but crashes when running on iPhone. I can easily get so many articles to implement on iPad, but on iPhone couldn't find a fruitful one. Plz help

Upvotes: 1

Views: 3559

Answers (6)

loganathan
loganathan

Reputation: 2086

If you really want to use popover in iphone then try this library. This is pretty cool. I integrated with my ios app.

Custom popover controller for iphone

Upvotes: 0

coder1010
coder1010

Reputation: 412

Try using WEPopover framework. Here is the link https://github.com/werner77/WEPopover

Upvotes: 0

hanumanDev
hanumanDev

Reputation: 6614

A popover-like open source project that works on iPhone:

here it is

Upvotes: 0

Nicolas Miari
Nicolas Miari

Reputation: 16256

If you want to simulate a popover look-alike (e.g. Facebook app), on the iPhone, you will have to code it from scratch using UIViews and custom graphics.

As others said, the popover API is iPad-only.

Upvotes: 0

mshau
mshau

Reputation: 503

UIPopOverController will not work for iPhone it will work on Ipad only

Upvotes: 1

skram
skram

Reputation: 5314

UIPopOverController isn't available for iPhone. ONLY iPad.

Upvotes: 5

Related Questions