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

iOS12 Chinese Keyboard(zh-Hans and zh-Hant) causing app crash (TextFiled in UISearchBar/UIAlertView/UIAlertViewController)

My app has this issue after upgrading to iOS 12. App will crash whenever the native Chinese keyboard or third party Chinese Keyboard is invoked. Chinese hand-writing keyboard does not cause crash. The app is localised for English and Chinese, so the…
Dilabeing
  • 31
  • 6
0
votes
2 answers

Tap to retry connect internet in Swift

I'm a beginner in Swift and I'm trying to make an alert for user to retry connecting to internet. I'm using Reachability by ashleymills. I'm confused on what to put on my alert handler since this is not working: func alertConnect() ->…
0
votes
0 answers

Center slider in UIAlert controller

This is my code, i have an uialert controller and inside of it i put a slider. When i run the application and open this alert, slider is not center. My alert Can someone help me? UIAlertController * alert = [UIAlertController …
Danny CASA
  • 21
  • 6
0
votes
4 answers

Multiple AlertViews - Remove the alertview that is behind another alertview

I think this scenario should be weird one but i am stuck up with this. I am having a view lets say View1, which will show one or more alertviews.Alerts are stacked one above the other if they are untouched. The problem comes here. If i click the top…
ipraba
  • 16,485
  • 4
  • 59
  • 58
0
votes
1 answer

Error While Showing Alert

I am creating a signup screen and using firebase sdk on backend . i have add some if Conditions in my signup form and when ever if a textfield is left empty in form and register button is pressed i am showing a UIAlertView with a Title,Message and…
Muhammad Usman
  • 795
  • 7
  • 19
0
votes
1 answer

How to continuously appear alert while there is no internet connection?

I am working on an iOS app that requires internet connection to run properly so i'm using the Reachability framework so that I can obtain the connection state. Right now whenever there is no internet connection I have and alert with the button…
0
votes
1 answer

Send SMS through UIAlertView

I work for a roadside service and I have an app I made that will text me the user's location, that way I can find them easier. Right now I have it where you click the location button, it brings up a text message view with my number and their…
John Kern
  • 35
  • 4
0
votes
3 answers

Custom alertViewController in storyboard

I would like to show a popup (I just have UIAlertController in mind) like the the image below: What I want to achieve I found some kind of similar questions on the internet but they are code based, this way it is really hard to align the stuff in…
Abed Naseri
  • 512
  • 2
  • 10
  • 18
0
votes
1 answer

UIAlertAction handler called at the wrong time?

I have a function that looks like this: @IBAction func showAlert(){ //Some irrelevant code let alert = UIAlertController(title: "Some Title", message: "Some Message", preferredStyle: .alert) let action = UIAlertAction(title: "Close this alert",…
0
votes
1 answer

UIAlertController pushed up and offscreen by modal view controller

I have a viewController, presented by a navigationController, and when I press a button I do two things: first I present a UIAlertController, which appears just fine. Then in 2 seconds, I modally present a second UIViewController, and when it slides…
dasj
  • 11
  • 3
0
votes
1 answer

NSRunLoop timing issue

Maybe there is a better way, but I want to pop a choice list when a user taps a button in a UIalertView. I would like this list to pop while the alert view is still visible and have everything close when the user taps an item in the choice list. I…
user278859
  • 10,379
  • 12
  • 51
  • 74
0
votes
3 answers

Store value of AlertView in iphone

HI, I'm aware that accessing the SMS incoming isn't possible in the iPhone SDk but could i read the alertView that is active on the iPhone (ie. new SMS alert) and store its values into a variable? Obviously this would require backgrounding but in…
benhowdle89
  • 36,900
  • 69
  • 202
  • 331
0
votes
1 answer

How to get cancel and call user action from UIAlertView

I am trying to get user action after displaying alert to call on number (UIButton) click. Problem : When user clicks on number for multiple times it shows alerts for that many instances. Expected Result : I want to show alert only once. Following…
0
votes
3 answers

2 UIAlertView with 3 buttons?

I wanna know how can I make 2 UIAlertView, with 3 buttons, the UIAlertViews(2) needs be different, the options and the actions... how ???
Rafael
  • 83
  • 4
  • 10
0
votes
1 answer

didSelectRowAt indexPath function is not working while search is active

I am trying to make a search and tap one of the cell to display AlertView. And this alertView asks to add to the array. I am using didSelectRowAt indexPath function and a searching function. Before any searching, everything works fine. But if…
Mr. T.
  • 93
  • 11