UIPOPOVER for Iphone? or is it fake?

后端 未结 2 1277
野性不改
野性不改 2021-01-13 11:52

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 ip

相关标签:
2条回答
  • 2021-01-13 12:09

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

    0 讨论(0)
  • 2021-01-13 12:27

    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

    0 讨论(0)
提交回复
热议问题