Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Custom UIActionSheet for iOS

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

screenshot

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.

like image 348
BlueChips23 Avatar asked Jul 18 '12 02:07

BlueChips23


People also ask

What is action sheet in iOS?

An action sheet is a modal view that presents choices related to an action people initiate. DEVELOPER NOTE When you use SwiftUI, you can enable action sheet functionality in all platforms by specifying a presentation modifier for a confirmation dialog.

How do I use ActionSheet in react native?

If you want to apply custom CSS to your action sheet, React Native provides the following arguments: textStyle : Apply any text style props to the options. titleTextStyle : As the name suggests, this will apply text styles to the title. containerStyle : This will apply CSS to the container of the action sheet.


1 Answers

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

like image 121
SeanK Avatar answered Sep 24 '22 03:09

SeanK