Questions tagged [uiactionsheet]

UIActionSheet and UIActionSheetDelegate is deprecated in iOS 8. To create and manage action sheets in iOS 8 and later, instead use UIAlertController with a preferredStyle of UIAlertControllerStyleActionSheet. The UIActionSheet class of the Apple iOS can be used to present to user a modal view with a descriptive text and some buttons the user can choose from. An action sheet displays a set of choices related to a task the user initiates.

The action sheet has two different appearances. On iPhone (), an action sheet always emerges from the bottom of the screen and hovers over the application’s views (an action sheet for Safari on iPhone is shown above). The side edges of an action sheet are anchored to the sides of the screen, which reinforces its connection to the app and to the user’s most recent action.

On iPad (), an action sheet is always displayed within a popover; it never has full-screen width. An action sheet can cause a popover to appear, or it can appear within a popover that is already open. In both cases, there is a strong visual connection between the action sheet and the user’s action.

An action sheet always contains at least two buttons that allow users to choose how to complete their task. When users tap a button, the action sheet disappears. An action sheet does not include a title or explanatory text, because it appears in immediate response to a user action.

Resources:

1000 questions
11
votes
1 answer

Android Action sheet

In iPhone, there is the concept of Action Sheet. I want to use the same functionality on a button click in Android, but Android doesn't have Action Sheet. Can anyone tell me the equivalent of Action Sheet in Android?
ADARSH YADAV
  • 157
  • 2
  • 3
  • 9
10
votes
5 answers

iPad's UIActionSheet showing multiple times

I have a method called -showMoreTools: which is: - (IBAction) showMoreTools:(id)sender { UIActionSheet *popupQuery = [[UIActionSheet alloc] initWithTitle:nil delegate:self cancelButtonTitle:nil destructiveButtonTitle:@"Close"…
Francesc
  • 1,339
  • 4
  • 16
  • 34
10
votes
6 answers

iPhone: detecting if a UIAlert/UIActionSheet are open

In my iOS application, I have a timer firing up, and when it fires, I need to be able to detect whether there's an Alert (UIAlertView) or an Action Sheet (UIActionSheet) open. One way would be to modify the code presenting the alerts/actionsheets -…
Reuven
  • 2,142
  • 3
  • 18
  • 30
10
votes
1 answer

How to display the UIActionSheet view from above Tab Bar Controller?

I need to display the action sheet above the Tab Bar controller. I mean, I would be able to see the Tab Bar controller even the action sheet view is in visible mode. So, Please suggest how to view from above the Tab Bar controller. Is it…
Madan Mohan
  • 8,764
  • 17
  • 62
  • 96
10
votes
2 answers

Is it possible to edit UIAlertAction title font size and style?

Now that iOS8 deprecated UIActionsheet and UIAlertview the customization working on iOS7 is not taking effect anymore. So far the only customization I'm aware is the tint color. And what I need is changing the title's font size and style which I…
Teffi
  • 2,498
  • 4
  • 21
  • 40
10
votes
5 answers

UIActionSheet with swift

I created an action sheet, but the problem is that the delegate method is not called myActionSheet = UIActionSheet() myActionSheet.addButtonWithTitle("Add event") myActionSheet.addButtonWithTitle("close") …
moteb
  • 113
  • 1
  • 1
  • 4
10
votes
3 answers

In iOS 7, how do I change the color of the options in my UIActionSheet?

I use green as the "action color" throughout my app, and I want the options in my UIActionSheets to be green as well, for consistency. How can I change the colour of the UIActionSheet options to green from blue?
Doug Smith
  • 29,668
  • 57
  • 204
  • 388
9
votes
6 answers

UIActionSheet Dismiss when click/ tap outside

I'm novice in iPhone development. Can anyone tell me how to dismiss UIActionSheet control when i tapped outside of it? In my actionSheet i have only datePicker control and it pops up over tab bar control now what i want whenever user click outside…
RizWiz
  • 111
  • 1
  • 1
  • 3
9
votes
3 answers

swiftui one view with 2 or 3 actionsheets?

I want to call different action sheets in a view, using a variable. That does not mean to work. .actionSheet(isPresented: self.$neuinitialisierung) { ActionSheet( title: Text("Testtitel 1"), …
CodierGott
  • 471
  • 1
  • 5
  • 10
9
votes
8 answers

Is there any way to change the title font size in a UIActionSheet?

The font is very small and hard for some to read so I'd like to make it closer to the font size used on the buttons below it.
pirey4
  • 121
  • 1
  • 1
  • 6
9
votes
1 answer

iOS - Send Image to Instagram - DocumentInteraction

Would it be possible to share a picture to Instagram bypassing the Action Share Sheet? Please Note that I am aware of the UIDocumentInteractionController and the hooks and in fact it works fine. With their sample code you get a Copy to Instagram…
Martin Marconcini
  • 26,875
  • 19
  • 106
  • 144
9
votes
5 answers

UIAlertController Unable to satisfy constraints

I am converting all my UIActionSheet and UIAlertView with UIAlertController. My problem is when I try to present a UIAlertController of style ActionSheet. Here is my code : UIAlertController *alert = [UIAlertController…
9
votes
4 answers

iOS 8 Only Memory Leak with UIAlertController or UIActionSheet

I'm seeing a memory leak in iOS 8 in simulator when I do the following with UIActionSheet or UIAlertController. UIActionSheet uses UIAlertController in IOS 8 so the issues are related. showCameraAction gets called when a button is pressed. I've…
9
votes
2 answers

EXC_BAD_ACCESS when trying to init UIActionSheet in Swift

My program compiles successfully, but when I press the button, it crashes. Here's the viewController.swift: import UIKit class ViewController: UIViewController, UIActionSheetDelegate{ @IBOutlet var button:UIButton override func viewDidLoad() { …
lazyd3v
  • 426
  • 2
  • 13
9
votes
2 answers

Subclassing UIAlertController

With pre-iOS 8 we had to use the UIAlertView and UIActionSheet Which we weren't allowed to mess with the view hierarchy or subclass on either them. UIAlertView Documentation The UIAlertView class is intended to be used as-is and does not support…
Popeye
  • 11,839
  • 9
  • 58
  • 91