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

Screen locked after second SIAlertView message and popViewController

When the request failed, SIAlertView shows error message then click the OK button of SIAlertView, popViewController working and there is no problem but when I tried second time and request failed, popViewController working again but there is gray…
BadCode
  • 131
  • 13
0
votes
1 answer

Present a custom UIAlert from a UINavigationController stack view

I am having trouble presenting a CustomAlert, subclass of UIViewController, from a UINavigationController stack view. To be more descriptive, I have a UITabBarController that wraps a UINavigationController. navController, has a rootView and a…
0
votes
1 answer

Referring to an NSString in output of UIAlertView?

I have an NSString, testString which is set to a value in my app. Then as a response to a button press in UIAlertView I have the following code: - (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex { if…
Andrew
  • 15,935
  • 28
  • 121
  • 203
0
votes
2 answers

Can't get UIAlertView to work

I have a problem with UIAlertView i do not understand. I cannot get it to work. I have changed the code during test so the UIAlertView should hit directly when pressing the button. I have tested with breakpoint/debugger and what is happening when i…
PeterK
  • 4,243
  • 4
  • 44
  • 74
0
votes
1 answer

Custom alertview showing on top?

I am facing a weird situation. I have a tab bar application,where i am showing a custom alertbox in a particular view.The problem is that the alertbox always display on top rather than middle of screen. I am currently using Xcode 3.2.5 & build it on…
raaz
  • 12,410
  • 22
  • 64
  • 81
0
votes
1 answer

CGAffineTransformTranslate not working in iOS 3.1.3

I'm trying to move a UIAlertView from it's default position in the center of the screen, up to the top. I'm using the code below and it works on iOS 4, but it doesnt move on 3. Anyone has any idea? UIAlertView *newSubscriptionAlertView =…
Olsi
  • 929
  • 2
  • 12
  • 26
0
votes
2 answers

[Obj-C]How do i do an IBAlert after using NSTask?

i use NSTask, works 100% but after running it (when running it, i also use an MBProcessHUD) i want to do an IBAlert with somethings in it... here is my code -(void) runScript { task = [[NSTask alloc] init]; [task…
Cykey
  • 81
  • 1
  • 3
0
votes
1 answer

good looking alert in iphone app

I am working on making my first iPhone app nicer :) When an error occurs, I display it in a "basic" UIAlertView (blue background, a Cancel button). I saw in several apps very good looking alerts when network errors occur (nice grey modal alert that…
Luc
  • 16,604
  • 34
  • 121
  • 183
0
votes
3 answers

How to change UIAlertView text color?

I'm currently using http://kwigbo.com/post/318396305/iphone-sdk-custom-uialertview-background-color for my custom UIAlertView. Everything is working fine but I'm trying to change the title and message text colors and I would like to change the…
0SX
  • 1,252
  • 6
  • 24
  • 47
0
votes
1 answer

Text on alert view that appear when ask permission for the camera in different lenguajes

APPLE SAID THAT NSCameraUsageDescription NSCameraUsageDescription (String - iOS) describes the reason that the app (including an iMessage app) accesses the device’s camera. When the system prompts the user to allow access, this string is displayed…
Jota
  • 81
  • 7
0
votes
3 answers

UIAlertView show when app loads, open

How show a alertview just when the app open, load... Like everytime that the user open the app, he see the alert ....
Rafael
  • 1
  • 1
0
votes
1 answer

Max Width for alertview?

In my iPad i am using alertview, my problem is when i am trying to increase the width of alertview it was not increasing. Any Max width is there for alertview. As i am beginner for this. can anybody help me. i used the like below -…
sny
  • 1
  • 1
0
votes
1 answer

How to show Alert if CollectionView cell is not selected in Swift 3?

I am working on a Doctor Appointment App. I have a collection view in which cells are time slots. User can select time slot based on date of his favour.I placed a button under the collection view and after clicking that button user moves to next…
Purna chandra
  • 107
  • 11
0
votes
1 answer

Error UIAlert when trying to do unwindsegue

I have a UIView which allow user to save some data with their desirable name before it can be view in the tableView func saveFilesName() { let alert = UIAlertController(title: "Save As", message: "Please enter the file name", preferredStyle:…
JameS
  • 231
  • 1
  • 2
  • 11
0
votes
0 answers

UIAlertController Issues in External Event Driven Presentations

We're currently migrating from the deprecated UIAlertView to UIAlertController. Our application can react the certain external events (such as push notifications, bluetooth communication, background network responses) and as a result of those events…
Cosmin
  • 2,840
  • 5
  • 32
  • 50