简体   繁体   English

如何从Lift实施像这样的滑动2按钮菜单?

[英]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. http://imgur.com/3ZBCsDn无法将图片发布在网站上,但确实存在。

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 . 这就是所谓的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; 只需查阅UIActionSheet类的文档即可; 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 http://www.apeth.com/iOSBook/ch26.html#_action_sheet

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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