Questions tagged [uialertviewcontroller]

33 questions
-1
votes
1 answer

UIAlertController have different DOM structure in iPhone and iPad

I am showing UIAlertController in iOS and same code executes for iPhone and iPad. So can anyone help with this. As I google but didn't find any thing to justify this. Below is the code I have used:- let alert = UIAlertController(title: title,…
ashForIos
  • 399
  • 1
  • 5
  • 18
-1
votes
2 answers

Swift - Presenting multiple alerts at the same time

I am making an app and want to create a custom alert. I have found the following way to do it: Create a view controller in story board and set its identifier. Set its background to clear. Create a view in it and set all the buttons and labels.…
kinza
  • 535
  • 11
  • 31
-3
votes
1 answer

alertview textField returning empty string

class x: UIViewController { let fromLocationLbl = UILabel() override func viewDidLoad() { super.viewDidLoad() let editTextField = UITextField() let alertController = UIAlertController(title: "Alert!", message:…
Ravi
  • 165
  • 3
  • 11
1 2
3