Custom UIActionSheet for iOS

蓝咒 提交于 2019-12-04 08:31:52

问题


Is it possible to create an action sheet that looks like the attached image for iOS?

This is the screenshot from the Photo app on iOS6, when you press the action button. I really like the way the options are listed as their icons, rather than horizontal buttons with titles.

I looked through Google and also in Apple's iOS reference but I can't seem to find anything that teaches me how to create something like this for my app.


回答1:


You can create this by using an Activity View Controller. It's not the same as an Action Sheet.

See Apple's documentation:

http://developer.apple.com/library/ios/#documentation/userexperience/conceptual/mobilehig/UIElementGuidelines/UIElementGuidelines.html#//apple_ref/doc/uid/TP40006556-CH13-SW121



来源:https://stackoverflow.com/questions/11533507/custom-uiactionsheet-for-ios

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!