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 - 开发者_JAVA技巧any idea how did they manage to create a pop over like that ?
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
Sublcass a UIView and display your content inside it. This way you can fake a pop over on the iPhone.
精彩评论