开发者

Make Popups With Cocoa Touch

I'm trying to make a popup like in "Ca开发者_运维百科mera+" or "Tweetbot" (like this one : Tweetbot or this one Camera+). How can I do this ?


That component is generally called a Popover or a Callout. Apple provides you with an Implementation on the iPad (UIPopover) but not on the iPhone.

There are a few Libraries which attempts to solve this and creates similar popovers like the ones you've shown. With a bit of customisation you can get it to look like this ones you've linked. Below is a list of the ones i've found so far:

  • WEPopover
  • CMPopTipView
  • PopupView


There's similar question here: iPhone popup menu like iPad popover?.

There is a solution. It's called WEPopover and you can download it from github.


For ipad use the popover control:

http://www.matthewcasey.co.uk/2010/04/07/tutorial-introduction-to-pop-over-control-on-ipad-part-1/

http://developer.apple.com/library/ios/#featuredarticles/ViewControllerPGforiPhoneOS/iPadControllers/iPadControllers.html

http://developer.apple.com/library/ios/#documentation/UIKit/Reference/UIPopoverController_class/Reference/Reference.html

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜