简体   繁体   中英

How would one implement a sliding 2 button menu like this from Lift?

http://imgur.com/3ZBCsDn Can't post the image on the site but there it is.

I have been trying to find if this is a template or a separate nib file ala the page turn animation. Any help would be greatly appreciated.

That is called a UIActionSheet . It is created entirely in code, so it's limited to some pretty simple stuff (ie a few buttons, one of which is the cancel button, and one of which can be marked "destructive"). Just consult the documentation for the UIActionSheet class; it tells you all there is to know about it.

Also, here's the discussion in my book:

http://www.apeth.com/iOSBook/ch26.html#_action_sheet

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM