Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UIPopOverController for iPhone (currently only available for iPad)

Before I implement something similar for the iPhone, I'm wondering if anyone has implemented something similar of the UIPopOverController for the iPhone. This is so far only available for iPad.

like image 804
Brian Liang Avatar asked Oct 07 '10 02:10

Brian Liang


3 Answers

See my implementation here: https://github.com/werner77/WEPopover

It has the same interface as the UIPopoverController but is generalized for iPhone and with support for custom background views.

like image 158
Werner Altewischer Avatar answered Oct 27 '22 03:10

Werner Altewischer


I have provided another alternative SGPopoverController at http://github.com/KJoyner/SeaGlass. Like the WEPopover, this has a similar interface to UIPovoerController but works on the iPhone. This version handles more corner cases, works both modally and non-modally, supports passthrough views, and more.

like image 39
Ken Joyner Avatar answered Oct 27 '22 01:10

Ken Joyner


Create UIPopover+iPhone.h

#import <Foundation/Foundation.h>

@interface UIPopoverController (overrides)
+ (BOOL)_popoversDisabled;
@end
like image 36
Duny Avatar answered Oct 27 '22 02:10

Duny