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

Swift3 UITextField in UIAlert validation after button pressed

I have implemented alert window with two text fields. And I want to perform some validation: if one of text fields is blank (user did not input any value), application should not allow user to press the "Done" button. I don't want to show any…
DJ-Glock
  • 1,277
  • 2
  • 12
  • 39
0
votes
1 answer

Most effective way to give certain ViewControllers access to functions

I have an app with a large number of ViewControllers. There is also a collection of functions that return UIAlertControllers informing the user regarding events related to his account. Here is an example of one such funtion: func…
Marmelador
  • 947
  • 7
  • 27
0
votes
1 answer

local notifications in screenlocks

I'm looking for a way to display a UIAlert on the Iphone screen each time the Iphone goes to screenlock mode. Is there a way to do that through local notifications without using timers ? Or any other means ? Is there a way to detect when screenlock…
Miky Mike
  • 341
  • 6
  • 17
0
votes
1 answer

UIAlertview in iphone application

I am new to iphone application.I am working on my first app.I have to implement alertview with three textfields and three labels(currentpassword,newpassword,verifypassword) and two uibuttons(submit,cancel).Title is:changepassword.upto now,I found…
user549725
  • 37
  • 1
  • 2
0
votes
1 answer

how to dismiss alert view after validation?

I had used SCLAlertView used for forgot password in this i had placed a textfield to enter email so that after making successful validation only it need to hide without this it should not hide can anyone help me how to implement this ? My code is…
Vamsi S
  • 269
  • 3
  • 16
0
votes
1 answer

how to add uipickerview in uialertview swift 3

Swift 3 iOS 10: I want to add UIPickerView in UIAlertView so that i can choose item and set it's value to the textField. I could do it with UIView but I want to improve it in a better and natural way. Is it possible to do this or any way out? Thank…
EK Chhuon
  • 1,105
  • 9
  • 15
0
votes
5 answers

Detecting which UIAlertView was clicked

i need to pop up alert when my application loaded... I called it didfinished launching.. after clicking ok button need to show another alert message i use clickedButtonAtIndex... Now when I clicked the ok button its calling again and again.. the…
kiran kumar
  • 1,349
  • 4
  • 21
  • 40
0
votes
1 answer

Create Custom alert view or popup

i want to display some alerts on the app delegate. when i tap on the button the alert should stay there. if no action with in 5min that alert want to dismiss. somebody please help me to create a custom alert. const CGFloat fontSize = 24; //…
Manju SSP
  • 63
  • 6
0
votes
1 answer

iphone UIAlertView - custom background color

I need to customize the background color of the UIAlertView. I have a sample code that works perfectly on iphone 3.x, but on iphone 4 the alertview shows the default blue color. UIAlertView *alertView = [[[UIAlertView alloc]…
Wasys
  • 1
  • 1
  • 1
0
votes
1 answer

App Store link not opening in UIAlertView

Any reason this App Store link isnt working properly (nothing happens when you press it) - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { id sectionInfo =…
benhowdle89
  • 36,900
  • 69
  • 202
  • 331
0
votes
1 answer

Multiple errors when trying to pass UIALERT using Multipeer Connectivity Swift 3 Xcode8

I'm wondering whats wrong with my code at this point. After trying a lot I figured out how to pass a UIAlert over...kind of.. But I get errors. Another pair of eyes would be great for some advice. Source code would be great. Thanks in advance code…
jake
  • 15
  • 5
0
votes
2 answers

UIAlertView not allowing text input in iOS 10

I am trying to fix on iOS 7+ an alert allowing me to input a 4 digit code, at the moment, the prompt appears, but the input field is blank and does not allow me to put anything in. The methods below are used to call the pin code option, starting…
Hypergater
  • 559
  • 1
  • 5
  • 15
0
votes
1 answer

Display alert in current view, and as well as Redirect to another view

I want to display alert for check new version of my app from API. And from that view if userDefault data is store so base on that I want to redirect to another view. My redirection code is work perfectly but when I add alert code so redirection…
NiravS
  • 1,144
  • 1
  • 12
  • 24
0
votes
1 answer

The Alert View shows many time not one time

I create UIAlertView in my function, the problem is it shows a lot of time when the function runs, how can I create an if statement to show only one time like if UIAlertView shows not show any more. - (void)showAlert { _myAlertView = nil; …
0
votes
0 answers

Show Multiple Alerts with different time

Show alert for different time different messages from core data. i tried this code show alert for 2 seconds 3 seconds ,4 seconds etc... if (fetchedObjectsData.count > 0) { NSLog(@"Return data Count is ====== %lu",(unsigned…
Manju
  • 27
  • 8
1 2 3
99
100