Questions tagged [uialertsheet]

UIAlertSheet is a misrepresentation of UIActionSheet, a type of modal overlay view that presents the user with a set of possible actions to take.

UIAlertSheet is a misrepresentation of UIActionSheet, a type of modal overlay view that presents from the bottom of the screen and gives the user a set of possible actions to take. It might also refer to UIAlertView, which presents a modal alert overlay in the center of the screen with an message and set of action buttons and a cancel button.

Please use or when referring to either of these user interface elements.

11 questions
54
votes
6 answers

Use NSArray to specify otherButtonTitles?

UIAlertSheet's constructor takes an otherButtonTitles parameter as a varg list. I'd like to specify the other button titles from an NSArray instead. Is this possible? i.e. I have to do this: id alert = [[UIActionSheet alloc] initWithTitle:…
Steven Fisher
  • 44,462
  • 20
  • 138
  • 192
43
votes
11 answers

UIAlertController is Crashed (iPad)

I am using Xcode 6 to develop an iOS Application. When I used UIAlertController, it can be worked well on iPhone 6 simulator, but crashes on iPad simulator. My problem while clicking "share", then it could be crashed. How could I solve it? Here is…
user5122712
3
votes
3 answers

UIAlertView button press causing crash, when all others work fine

I have an alertview which displays fine. In my header I've included the UIAlertViewDelegate, but for some reason whenever I click a button on the alert view my app crashes with a bad excess, saying that an unrecognized selector was sent. Any ideas…
monotreme
  • 582
  • 1
  • 6
  • 20
2
votes
1 answer

SwiftUI UIPageView compile error and action sheet problem

I have 2 problems in my code. One is compile error [Cannot convert value of type 'Page1' to expected element type '_'] is shown at ★. Another is that when backward button is pressed, Page2(blue) disappeared while alert sheet is showing. (comment…
Candy
  • 397
  • 1
  • 3
  • 6
2
votes
4 answers

What is best solution to add a UIPickerView inside a UIActionSheet in iOS8?

I'm aware of the new UIAlertController, but I haven't seen a solution other than Creating a UIViewController, adding the UIPickerView as a subview and presenting it modally.. which probably means adding delegates to pass info :( Can anyone post…
1
vote
1 answer

Thread1:EXC_BAd_InSTRUCTION(code =EXC_1386_INVOP,subcode)

I'm new to Cocoa, xcode.I'm Doing Sample Project " How to display AlertPanel and Alert Sheets.I am Getting Error Like this "thread1:EXC_BAD_INSTRUCTION(code=EXC_1386_INVOP,subcode=...).Here i Mentioned the Code line where i got the error.Please help…
k.hema
  • 35
  • 5
0
votes
0 answers

iOS image view change tint color when did alert sheet dismiss

I have a stack view, I tapped photo select item and I show alert sheet, and when alert sheet dismissed and my image view's image did change to imageView's tint color. Code: let alertController = UIAlertController(title: nil, message: nil,…
0
votes
1 answer

Checkbox in UIAlertController with actionsheet in objective c

I want to add the checkbox i.e uibutton and uilabel in one option in UIAlertAction and only button in another UIAlertAction in UIAlertController. Please help and advice how to achieve it. UIAlertController *alert = [UIAlertController…
ios developer
  • 3,363
  • 3
  • 51
  • 111
0
votes
1 answer

iOS: Decrease delay in UIAlertView show when app enters foreground

I have created a password protected app. The app is allowed to run in background. When it returns to foreground, I display an alert to prompt the user for password, by overriding the applicationWillEnterForeground: method in appdelegate like so- -…
Zaxter
  • 2,939
  • 3
  • 31
  • 48
0
votes
2 answers

UIAlertView buttons are outside the alert window in iPad?

i have an issue related with UIAlertView . i have created an alert with body message and two buttons for OK and Cancel. when i present the alertWindow , the buttons makes its position outside of the alert window and which is not accessable. it will…
Neeraj Neeru
  • 570
  • 8
  • 28
-1
votes
1 answer

iOS 8/Xcode 6 - Add action to AlertSheet button

I am writing a basic photo app that allows a user to push a "+" button in a navigation controller and then an ActionSheet pops up from the bottom giving the user options, here is a picture: I have the code to get this app working using normal…
steveclark
  • 537
  • 9
  • 27