Skip to main content
Filter by
Sorted by
Tagged with
-1 votes
0 answers
66 views

For UIAlertController In iOS version < 26, text color was Black for title and message. In iOS version = 26, text color of title is black. What is font/color of message label? Please see below ...
pkc's user avatar
  • 8,548
-4 votes
2 answers
175 views

Note that you very likely would NOT do this in a production app as continuations easily leak. (Although it is incredibly useful during development.) I'm trying to write an asynchronous alert that ...
Fattie's user avatar
  • 9,780
-1 votes
1 answer
66 views

I'm using this code to call MFMailComposeViewController from another class: SomeViewController: class SomeController: UIViewController { func contactWithDeveloper() { let detailController =...
Alex Smith's user avatar
0 votes
0 answers
29 views

Simple question, here's the code snippet in question: override func viewDidLoad() { tableView.sectionHeaderHeight = 0 self.navigationController?.isNavigationBarHidden = true self....
Marc Murphy's user avatar
0 votes
0 answers
43 views

I have a project in which I am using UIAlertController at some places. whenever I am doing accessibility testing the alert is shown on screen, and I get warnings in accessibility inspector for title, ...
Mallikharjun's user avatar
0 votes
0 answers
39 views

I created a stackView which includes two UILabels, then add this view to UIAlertController.view by function addSubview(), for insteading of uialertcontroller's title and message by special styles. now ...
William Wang's user avatar
1 vote
1 answer
76 views

I want to create a popover menu with UIAlertController which includes customize action items, user can define style like font-size , background-color, alignment and Icon Position (Leading / Trailing), ...
William Wang's user avatar
0 votes
2 answers
522 views

extension UIViewController { static func takeScreenshot() -> UIImage? { guard let topController = UIApplication.getTopController() else { return nil } if let view = ...
Rehan Ali Khan's user avatar
1 vote
1 answer
209 views

I found this problem in working project. After I've created the simplest UIAlertController with textfield in empty project and found same problem. Looks like system bug? How to reproduce: Launch code ...
Danil N.'s user avatar
0 votes
0 answers
53 views

Able to set font for alert title and alert message but not for the Ok alert button. Want to set the font for the Ok also, Thanks in advance. let alertController = UIAlertController(title: ...
Nicolas's user avatar
  • 35
3 votes
1 answer
66 views

Somebody here on SO wanted to alter the behavior of UIAlertAction buttons in a specific UIAlertController, but not others. (They wanted multi-line button labels for one alert but normal behavior for ...
Duncan C's user avatar
  • 132k
0 votes
1 answer
98 views

I was having issues with text truncating with UIAlertController but that issue is fixed now with: UILabel.appearance(whenContainedInInstancesOf: [UIAlertController.self]).numberOfLines = 2 This will ...
rubberchicken's user avatar
0 votes
2 answers
334 views

Do you know if it's possible to present a toast message while alert is presented? More specific, the alert contains a textfield and I want to present a toast with error message when textfield's value ...
Louiza A's user avatar
1 vote
0 answers
55 views

I want to change the size of the UITextField programmatically. Actually what I want to do exactly is this UIAlertView inside I have a UITextField. I want to increase the size of this UITextField. ...
BurakEryvz's user avatar
0 votes
0 answers
69 views

I have a UIAlertController with preferred style actionSheet and a cancel action with cancel style. The issue I have is that as you can see from the image below, the background colour of the cancel ...
Louiza A's user avatar
0 votes
0 answers
196 views

I want to achieve an alert that has a text field embedded in it WITHOUT the help of iOS 16. It went smoothly until I wanted to update a variable when I press one of the buttons. Currently, I have the ...
Kelvin Jou's user avatar
0 votes
1 answer
115 views

Swift 5, Xcode 14.2 I've got two UIViewControllers that both have to display the same UIAlertController (only one is loaded at a time). Instead of using the same code twice, I added it to my existing ...
Neph's user avatar
  • 2,013
0 votes
1 answer
778 views

I have scenario where I need to display an alert without any button. Is it possible to remove the buttons from the default Alert in SwiftUI? I know how to create a custom view as Alert. But I would ...
Yalamandarao's user avatar
  • 3,862
0 votes
1 answer
637 views

I'm trying to create a SwiftUI alert dialog that contains a picker view inside of it, similar to the example here https://github.com/zhiyao92/PickerView-on-AlertController. This is the code I've built ...
Simon Rex's user avatar
  • 303
0 votes
1 answer
42 views

I would like to present a second UIAlertController in UIAlertAction. The second UIAlertController is called by method 'deletePoints'. The problem is that the first action does not wait for the second ...
Gökhan's user avatar
  • 11
0 votes
1 answer
51 views

returnAlert?.addTextField(configurationHandler: { [self] (textField) in // //Dropdown Start here let customDiscounTypes:[String] = ["\(PaymentCardType.MasterCard)", "\(...
Jore Dawal's user avatar
0 votes
1 answer
39 views

I have a table view and I have an add button that when pressed alerts three text fields to pop up when you finished and press add the data goes into the table view and is stored in Firebase. let ...
user avatar
0 votes
1 answer
64 views

I am currently working on a social media app and so far I have been able to make a LoginViewController & a SignUpVIewController, and have it where when the user taps on the Sihn Up Button on the ...
Hegazy1738's user avatar
7 votes
1 answer
4k views

I am getting an odd compiler message when presenting a totally innocuous alert controller from a tableViewController: let ac = UIAlertController(title: "Add item", message: nil, ...
Torrontés's user avatar
0 votes
1 answer
5k views

StartScreenVC import UIKit class StartScreenVC: UIViewController { private var apiService = ApiService() override func viewDidLoad() { super.viewDidLoad() ...
LordGrim's user avatar
1 vote
0 answers
113 views

I am trying to add a text field to an alert to simply ask a user for their name which I will then store as a variable and then use. However when I add the text field I keep getting this error: [...
latenightsnacks's user avatar
0 votes
0 answers
175 views

I have a problem that appears on my iOS app since iOS 16. I have a UIAlertController presenting and when the keyboard appears, on iOS < 16 the keyboard is showing in front of the UIAlertController, ...
user18567754's user avatar
0 votes
2 answers
827 views

i am struggeling with a issue as following: i start some network processing inside a async function: func upload( object: object, context: NSManagedObjectContext ) async -> Dictionary<...
blendstylez's user avatar
0 votes
0 answers
48 views

I got simple UIViewController + UIAlert extension: extension UIViewController { func alert(title: String = "", message: String){ let alert = UIAlertController(title: title, ...
Krzysztof P's user avatar
0 votes
1 answer
55 views

I am trying to use UIAlertAction to have a user enter in a name and check that name against an array of names. If the name exists I want to notify the user and return to the UIAlertcontroller. If the ...
wneclax21's user avatar
-2 votes
1 answer
97 views

I have a problem trying to put an alert message after completing the action. The application crashes. @IBAction func deleteAccountAction(_ sender: Any) { let userID = prefs.value(forKey: "...
Noise182's user avatar
0 votes
1 answer
180 views

I have an UIViewController extension which I am using to display alerts in any view controller. It worked fine until this weird use case happened: extension UIViewController { func showModal(title:...
cvld's user avatar
  • 97
0 votes
1 answer
390 views

Getting this error... [LayoutConstraints] Changing the translatesAutoresizingMaskIntoConstraints property of a UICollectionViewCell that is managed by a UICollectionView is not supported, and will ...
daj mi spokój's user avatar
3 votes
0 answers
495 views

I have a SwiftUI View that is presented by UIKit and is contained within a UIHostingController. This View has a button that should trigger an Alert to be presented. My implementation is ...
andrew's user avatar
  • 41
2 votes
0 answers
139 views

I am working to give my app better support for the iPad physical keyboard. Everything is behaving pretty much as expected, except the keyboard's Return key is not dismissing UIAlertControllers that do ...
Brian H's user avatar
  • 203
1 vote
1 answer
2k views

I am trying to show an alert after another one in swift. I found a solution but I think this is not the true way. My code piece is below. With this code, alerts can be shown in the view. override func ...
Mehmet S.'s user avatar
0 votes
2 answers
60 views

I am trying to open a second UIAlertController upon choosing an option in the first UIAlertController but I am unable to reach indexPath in order to set a property from a textField of a second ...
Nikita Chechnev's user avatar
2 votes
1 answer
706 views

How do you tap on "OK" on the iOS system alert asking "Photos access" using Xcode Tests? There are many many such questions on SO, but none of the answers worked for me. Tests ...
user avatar
1 vote
1 answer
60 views

I've added a UITableView control to a UIAlertController to create a custom list picker. Everything worked fine until I tried to move all of my code into a new ListPicker class. Originally I had this ...
Joel S.'s user avatar
  • 91
0 votes
1 answer
842 views

I'm trying to make my font size larger in the textField that is currently placed within an alert: func showAlert() { let ac = UIAlertController(title: "Title", message: "Message&...
Jordan's user avatar
  • 177
2 votes
0 answers
434 views

I would like to include UIAlertController in my SwiftUI project because I have more customization options with UIAlertController than with swiftui alert. I've already partially done that with this ...
SwiftUI_Max's user avatar
1 vote
1 answer
118 views

I have to show an UI alert dialog in the Appdelegate and MainAcvitivy in Xamarin.Forms. For android, there is no problem but for ios it does not work properly. First of all, if I use UIAlertView, it ...
boss's user avatar
  • 1,638
0 votes
1 answer
478 views

I have a custom view controller class which presents an alert controller when it receives a not connected notification from my network services class. I want to dismiss the alert controller when I ...
Stephen501's user avatar
0 votes
1 answer
844 views

I've been trying to figure out how to change the height and width of the UIAlertControllerfor a couple of weeks now. You apparently can do it as I've seen several Swift examples, for example here. I ...
Prescott Chartier's user avatar
0 votes
1 answer
361 views

I'm trying to upload a file only if the user clicks on 'Yes', it is not calling the method but new to ionic so I'm not sure if this is right way to call a method in Alert. async presentAlertConfirm() ...
Ashish Gupta's user avatar
0 votes
1 answer
198 views

I'm trying to set the background color of a UIAlertController. The code I'm using appears to (almost) do that except it looks more like Tint than BackgroundColor. The corners are the color I'm ...
Prescott Chartier's user avatar
0 votes
1 answer
111 views

I am developing an app using Visual Studio 2022 that uses ZXing.Net.Mobile,Forms to scan barcodes, everything is working as expected except I am unable to display the UIAlertController message over ...
Prescott Chartier's user avatar
0 votes
1 answer
606 views

(Angular & Ionic) I would like to add a link to the playstore from my alertcontoller modal. is this possible? const alert = this.alrtCrtl.create({ title: `...`, subTitle: `...`, ...
Kurtis Henry's user avatar
-2 votes
1 answer
654 views

I'm presenting a UIAlertController action sheet on a view controller. This works fine on an iPhone. On an iPad I see nothing, but the console warns me about layout constraints which seem to set its ...
Glorfindel's user avatar
  • 22.8k
0 votes
1 answer
108 views

In the below UI, I need to show Spotlight where we are going to show some feature of the button from UIAlertController. So to add a mask to the UIWindow for that button I need it's exact location. How ...
Anirudha Mahale's user avatar

1
2 3 4 5
34