Questions tagged [uialertviewdelegate]

The `UIAlertViewDelegate` protocol defines the methods a delegate of a `UIAlertView` object should implement. The delegate implements the button actions and any other custom behavior. Some of the methods defined in this protocol are optional.

The UIAlertViewDelegate protocol defines the methods a delegate of a UIAlertView object should implement. The delegate implements the button actions and any other custom behavior. Some of the methods defined in this protocol are optional. On UIAlertViewDelegate, you can find the following methods:

Responding to Actions

  • alertView:clickedButtonAtIndex:

Customizing Behavior

  • alertViewShouldEnableFirstOtherButton:
  • willPresentAlertView:
  • didPresentAlertView:
  • alertView:willDismissWithButtonIndex:
  • alertView:didDismissWithButtonIndex:

Canceling

  • alertViewCancel:
60 questions
0
votes
2 answers

Multiple errors show in the same UIAlertView

I searched the net but have not found an answer. in my app i have a user registration, so i have to check the input text field before i accept the user. here is my code: - (IBAction)continueRegister:(id)sender { if (!termsOfUseChecked) …
OshriALM
  • 215
  • 3
  • 12
0
votes
1 answer

UIAlertView and Requesting Access to Addressbook

if (ABAddressBookGetAuthorizationStatus() == kABAuthorizationStatusNotDetermined) { ABAddressBookRequestAccessWithCompletion(addressBookRef, ^(bool granted, CFErrorRef error) { if (granted) { // First time access has been…
Moody
  • 352
  • 3
  • 15
0
votes
1 answer

UIAlertView with a lot of buttons seems destroyed iOS 6

There is an issue with an UIAlertView when i add to this a lot of buttons. Then the alertView seems to be destroyed. This happens only to prior version of iOS 7. On iOS 7 and posterior versions it seems ok.Here is a screenshot of my problem.Can i…
hoya21
  • 893
  • 7
  • 24
0
votes
1 answer

UIAlertView should not call popViewControllerAnimated

I have a view with some UITextViews. The user can enter person data, name, surname, email etc. When the editing is finished the user hits "Done" on the top right corner and the view navigates back to a the previous view like this: -…
cateof
  • 6,608
  • 25
  • 79
  • 153
0
votes
1 answer

Dismiss UIAlertView on Xcode 5 and iOS 8

My app is ready to go to the App Store, so I'm still using Xcode 5 at the moment. However, when I installed it on my iPad with iOS 8 there was a strange problem. I create an Alert just fine with delegate:self. But the function to dismiss the alert…
0
votes
1 answer

Push view programmatically from UIAlertView button?

I would open a UIViewController from a UIAlertView button but it doesn't work. When user terminate a game I show a UIAlertView with some text and two buttons: "Ok" to dismiss alert and "Score" to open the score page. This is the actual…
0
votes
2 answers

UIAlertView Delegate method not called in UITextView Class

I'm tying to call didDismissWithButtonIndex on UITextView Class ,but it not called. I also implement UIAlertViewDelegate on MyViewcontroller.h file and [alert setDelegate:self] to method. So is that possible to call UIAlertView Delegate method in…
iBhavin
  • 1,261
  • 15
  • 30
0
votes
0 answers

UIAlertview in iOS7 is not getting dismissed

UIAlertview in iOS7 is not getting dismissed when it got dismissed in childclass but not in parentclass. Any solution for it? UIAlertView *alertView=[[[UIAlertView alloc]initWithTitle:@"" …
0
votes
1 answer

Set delegate:self.delegate in an alertView where self.delegate implements UIAlertViewDelegate protocol

In my ViewController I have implemented the UIAlertViewDelegate and in my Model I have a method which creates an UIAlertView with the delegate set to self.delegate which is an instance of the ViewController. Then I try to call willPresentAlertView…
0
votes
2 answers

Passing text from a UIAlertView text field to a custom cell label

I have an application that pulls information from a SQLite database and populates the cells within a TableView. However, I want the user to be able to click a cell and then be able to edit the content within that cell via the AlertView. The…
0
votes
1 answer

Show UIAlertView in delegate fails

I am calling a UIAlertView within it's own delegate and it is failing. The code is simple: @interface ViewController () @property (nonatomic, strong) UIAlertView *alertView; @end @implementation ViewController -…
nurider
  • 1,555
  • 1
  • 18
  • 21
0
votes
1 answer

UIAlertView button not working

I want the cancel button of my UIAlertView to launch the app store so that my app can be updated. I can get the app to launch the app store, but I want it to launch only when the cancel button of my UIAlertView is pressed. The way I have it now,…
0
votes
2 answers

Access all UIAlertView object as a global object to control it Universally(to resolve CRASH in alert after deallocating the view contoller)

My requirement is to make my app's third tab as the home screen,and also whenever the user moves the app in background and while again moving the app to foreground it should be the home screen as our third tab instead the app is in any of the places…
Prasanna
  • 945
  • 10
  • 24
0
votes
1 answer

UIAlertView crash issue on another view controller

I have 2 view controllers, ViewController 1(VC1) and 2(VC2). In VC2 I have a back and done button. On clicking back button it goes directly to VC1 and on done it makes an api call and when it gets a response it shows an alert view and clicking ok…
Francis F
  • 3,157
  • 3
  • 41
  • 79
0
votes
1 answer

How to validate login using UIAlertView in IOS application?

I have created login for my application. I have written alert view in iOS. Here the code: alertView = [[UIAlertView alloc] initWithTitle:@"Login" message:@"Enter username and password" …
Vanarajan
  • 539
  • 1
  • 4
  • 19