Questions tagged [uialertview]

UIAlertView, a class contained in Apple's UIKit framework, was used to display an alert to the user. Alerts could have a title, message, several buttons, and custom subviews. UIAlertView was deprecated in iOS 8.

UIAlertView, a class contained in Apple's UIKit framework, was used to display an alert to the user. Alerts could have a title, message, several buttons, and custom subviews. UIAlertView was deprecated in iOS 8 and replaced with UIAlertController.

Use the properties and methods defined in this class to set the title, message, and delegate of an alert view and configure the buttons. You must set a delegate if you add custom buttons. The delegate should conform to the UIAlertViewDelegate protocol. Use the show method to display an alert view once it is configured.

Resources:

2558 questions
0
votes
1 answer

Xamarin iOS: Implementing a method that returns value from UIAlertView dialog

I need to implement a method that returns user input that is received from UIAlertView. This is what I did so far: It returns initial value of string, no matter what the user enters text. Any ideas? private string GetUserInput() { …
Omer
  • 23
  • 10
0
votes
1 answer

iOS 11 Custom UIAlertView not rendering fine

So I have and app that has a custom UIAlertView (by custom I mean adding the UILabel at the bottom programatically). It works just fine on iOS < 11, but in iOS 11 it fails miserably. So, on iOS 10 it works fine (left) but it fails in iOS 11 (right)…
Ignacio Oroná
  • 4,371
  • 1
  • 19
  • 25
0
votes
1 answer

UIAlertView and UITextFields not working

I am trying to direct the user to a new scene if he enters a correct code, but it does not work. Here is the code: - (void)showCodes:(id)sender { alert = [[UIAlertView alloc] initWithTitle:@"Codes" message:@"Enter a code." delegate:self…
tallen11
  • 1,387
  • 2
  • 17
  • 33
0
votes
1 answer

Erratic dismissal of software keyboard

Expected behaviour: user clicks inside TextField1, the keyboard pops up, user enters a value, NextButton is pressed, keyboard should be dismissed. Anomaly: the keyboard gets dismissed upon pressing NextButton, however it then pops up again after the…
jeddi
  • 651
  • 1
  • 12
  • 21
0
votes
2 answers

Why doesn't my alert view controller work

let alert = UIAlertController(title: "Title", message: "message", preferredStyle: UIAlertControllerStyle.alert) alert.addAction(UIAlertAction(title: "Cancel", style: UIAlertActionStyle.cancel, handler: nil)) alert.addAction(UIAlertAction(title:…
E. Tess
  • 17
  • 2
0
votes
5 answers

UIAlertView not showing

I have a small problem with one of my UIAlertViews. I'm trying to show it, do some tasks, and then dismiss automatically. This is the code I'm using currently: callingTaxi = [[UIAlertView alloc] initWithTitle:@"" message:@"検索中" delegate:nil…
Ben
  • 355
  • 2
  • 12
0
votes
1 answer

How to dismiss UIAlertController on outside touch without UIalertactionstyle cancel in ios

Hi... I am having an app in which I am using UIAlerController to show alert view. I am sucessfully able to show it but the problem is I can not dismiss the view on touching outside. I have to create a view manually and a cancel button (shown in…
Manthan
  • 3,856
  • 1
  • 27
  • 58
0
votes
2 answers

How to get a UIAlertView's result?

I implemented the gamekit. All works fine now. But if the user presses on send the data will instantly send to the other iphone/ipod/ipad and it will instantly written. So now i wanted to implemenr a confirm screen for the receiver. In my…
cocos2dbeginner
  • 2,185
  • 1
  • 31
  • 58
0
votes
1 answer

How to make a UIAlertView appears before the finger lift off in swift 3?

I've a UITableView and I'd like to make an UIAlertView to appears on a UILongPressGestureRecognizer. It works well right now, is that I've to lift my finger of the screen to see it appear. Is there a way to make it appears after 0.5s (for example)…
Hawkydoky
  • 194
  • 1
  • 15
0
votes
1 answer

Passing va_list parameter to a variadic function causes bad access error

I have a singleton WarningManager class in my project looks as follows WarningManager.h file + (WarningManager *)getInstance; - (void) createAndPushWarning:(id)actionDelegate isLocalisedStrings:(BOOL)localized text:(NSString…
0
votes
0 answers

show localized in-app purchase price when I move in my controller

I want to show localized price when I move in my controller. I use this code: if (SKPaymentQueue.canMakePayments()) { let productID:NSSet = NSSet(object: self.product_id!) let…
user8550968
0
votes
1 answer

terminating with uncaught exception of type NSException when trying to do an UIAlert or a performSegueWithIdentifier

When I run my app the output says: terminating with uncaught exception of type NSException when I try to do an performseguewithidentifier or a UIAlert. I am parsing my json data but when I try to either do a UIAlert or a segue when that data equals…
0
votes
4 answers

Swift Firebase UIAlertView with Firebase data strings

I have been trying to find a solution but no luck :/ I want to call my firebase data strings and use them as the "title" and "message" in a UIAlertView. I am using this UIAlertView as a geofence message. The geofence works if I just set the…
0
votes
1 answer

Swift: UIAlert in function - Use of unresolved identifier 'present'

I'm trying to limit the show of code so I just want to call function containing two strings to create a uialert faster with 1 line instead of 5/ The error I'm getting Use of unresolved identifier 'present' at the line present(alert, animated:…
WokerHead
  • 947
  • 2
  • 15
  • 46
0
votes
1 answer

Subclassing a UIAlertView

I'm desperately trying to find a way to make a custom UIAlertView that allows to display long texts and that would also allow to scroll the text as well. It seems to be possible since I've seen a few apps that do it (biteSms for instance) but I…
Miky Mike
  • 341
  • 6
  • 17