Custom UIActionSheet for iOS

2019-03-13 02:23发布

问题:

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