uialertaction Questions

4

Solved

I want to add a separated cancel button to my UIAlert. I know how to do it with UIActionSheet but it should also be possible with UIAlert, right? var sheet: UIActionSheet = UIActionSheet(); let ...
Amalee asked 16/11, 2014 at 10:37

3

Solved

I'm trying to write a helper class to allow our app to support both UIAlertAction and UIAlertView. However, when writing the alertView:clickedButtonAtIndex: method for the UIAlertViewDelegate, I ca...

6

I want to align UIAlertAction text alignment to Left and add the icon as in image shown. I spent lot of time on google to get the solution but not found the right answer. Every body post for the al...
Knead asked 18/11, 2017 at 20:42

3

Solved

I want to create an alert that redirects the user to Settings App after they denied camera usage for the first time, but the only way that I've seen so far uses UIKit and let settingsAction = UIA...
Rheometer asked 3/6, 2020 at 17:1

3

Solved

I don't want to change UILabel.appearance as it will apply to all labels. How I can show UIAlertController that will look like below image? Need to show bold button in the second position. By ...
Foible asked 1/2, 2018 at 4:34

3

Here is my code: class CustomAlertAction: UIAlertAction { init(title : String) { super.init(title: title, style: UIAlertActionStyle.Default) { (action) -> Void in } } } But I got the foll...
Glengarry asked 14/7, 2015 at 23:52

7

How to edit UIAlertAction text size and color? I have taken a UIAlertController acoording to it how to edit the size. This i smy Code UIAlertController *controller = [UIAlertController alertContro...
Narda asked 10/6, 2016 at 9:7

4

Solved

There are a couple of existing questions on this topic but they aren't quite what I'm after. I've written a little Swift app rating prompt for my app which presents two UIAlertController instances,...
Penick asked 23/3, 2016 at 9:3

0

I'm showing the 2 text values in UIAlertAction. I used the following code. UILabel.appearance(whenContainedInInstancesOf: [UIAlertController.self]).numberOfLines = 0 let actionSheetController = ...
Cloudburst asked 14/4, 2020 at 20:15

2

I'm trying to figure out how to change font type for UIAlertAction title. I'm assuming, it can be done by setting a value for particular key. For instance, to set an image you would do this: actio...
Damien asked 5/5, 2015 at 14:47

5

I would like to present a UIAlertController with 2 buttons. One button should close the alert and the second should perform an action but remain the alert on screen. Is there some configuration t...
Exegetics asked 3/5, 2018 at 15:1

2

I Need to implement a UIAlertController such as this UIAlertController with left alligned UIAlertAction After searching quite a lot in the internet and here in stackoverflow, I was able to achie...
Septarium asked 29/8, 2016 at 18:58

4

I have a UITableView and in the delegate (view controller), I have implemented the function tableView(tableView: UITableView, commitEditingStyle editingStyle: UITableViewCellEditingStyle, forRow...
Mouse asked 29/7, 2015 at 9:38

3

Solved

I need the text of the text field to be selected right after the UIAlertController is presented. However, the way I select text in a standard UITextField doesn't work here. This is what I tried, b...
Wolffish asked 14/3, 2016 at 15:35

3

Solved

I want to call a function rather than use a closure with a UIAlertAction. Is it possible to get a reference to the UIAlertController that owns the UIAlertAction? alert = UIAlertController(title: ...
Aerodyne asked 5/10, 2015 at 2:10

2

I am trying to create an UIAlertAction that has black color text for the first button and blue for the second. If I change the tint then all go black but i can't change the first button to black wi...
Gynandry asked 14/3, 2017 at 18:8

3

I'm trying to change my UIAlertViews to UIAlertControllers. I set up this action for it: UIAlertAction *undoStopAction = [UIAlertAction actionWithTitle:@"Undo Stop" style:UIAlertActionStyleDefaul...

3

Solved

I have been trying to create a UIAlertAtion which also has a handler. I read the answers from this question and know how to do it. My question is only about the closure portion of it. 1) I know ...
Amanuensis asked 30/11, 2016 at 16:48

3

I am trying (...) to add a sound effect to the buttons added to a UIAlertController. I fire a sound effect in the handler, but this actually is a bit too late. The sound fires like 0.5 seconds too ...
Gazelle asked 17/2, 2016 at 3:34

3

Solved

I'm working in Spritekit and I'm trying to present a UIAlertController from my SKScene, but I am having trouble doing it. I've watched several tutorials but none of the UIAlertController tutorials ...
Renettarenew asked 1/7, 2015 at 4:36

1

Solved

In a project I'm working on, I had to write a UIAlert helper module that would display popups here and there in my iOS app. The popups are written as class functions that I can simply call anywhere...
Jahveh asked 9/2, 2016 at 11:57

1

Solved

I am trying to send the user a 'Push Notification style' Alert when the user minimizes the app (by clicking on the iPhone's Home Button or by locking the phone as well). My app continuously parse...
Barkentine asked 26/1, 2016 at 7:25

1

Solved

Is there any way to pass the array "listINeed" to the handler function "handleConfirmPressed"? I was able to do this by adding it as a class variable but that seemed very hacky and now I want to do...
Singlehearted asked 26/1, 2016 at 2:5

1

I'm working with Swift in iOS 9. I want to customize the font for a UIAlertAction. I searched these questions for a Swift answer: Change the Font of UIAlertAction in Swift Is it possible to custo...
Grosgrain asked 4/11, 2015 at 22:4

2

Solved

UIAlertController *alertController = [UIAlertController alertControllerWithTitle:nil message:@"hello" preferredStyle:UIAlertControllerStyleAlert]; UIAlertAction *ok = [UIAlertAction actionWithTitl...
Discreet asked 4/5, 2015 at 8:9

© 2022 - 2024 — McMap. All rights reserved.