Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UIPOPOVER for Iphone? or is it fake?

Can anyone take a look a this ? : http://www.woowoomac.com/storage/awesome-note-iphone-note-todo-app-menus.jpg?__SQUARESPACE_CACHEVERSION=1268581762429

As we know iphone 4.0 does not support UIPopovers - any idea how did they manage to create a pop over like that ?

like image 681
user252317 Avatar asked Oct 21 '10 12:10

user252317


2 Answers

I created a class myself with the exact same interface as the UIPopoverController, but generalized for the iPhone. It allows you to customize the background and arrow for the popover as well. The tricky part is calculating the correct rectangle for the arrow image and resizing the background image properly, but other than that it's just standard UIView stuff (adding subviews, etc).

You can find a sample project including the core popover classes here: https://github.com/werner77/WEPopover

like image 55
Werner Altewischer Avatar answered Sep 28 '22 03:09

Werner Altewischer


Sublcass a UIView and display your content inside it. This way you can fake a pop over on the iPhone.

like image 38
JustSid Avatar answered Sep 28 '22 02:09

JustSid