Reputation: 43
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
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
Reputation: 412
Try using WEPopover framework. Here is the link https://github.com/werner77/WEPopover
Upvotes: 0
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
Reputation: 503
UIPopOverController will not work for iPhone it will work on Ipad only
Upvotes: 1