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

Alert view from tabbar

Like this video link enter link description here,I search around,got some idea by this enter link description here,but this project always open a alert with a background of selectedindex=0 , I need a background as last viewcontroller as in video.How…
Shangari C
  • 792
  • 1
  • 5
  • 17
0
votes
2 answers

Trigger UIAlertViewController Based on Time

I have UITable to display different animals. When you select a cell in the table, a new view controller with a large UIImage is pushed. Currently, when you zoom in on the image, a UIAlertView is triggered that asks the user if they would like to…
maddie
  • 1,854
  • 4
  • 30
  • 66
0
votes
1 answer

Customized Alert View Using Three20

I want to create a customized UIAlertView and since I'm already using Three20 I thought I'd give it a shot. I saw they have TTAlertViewController class. I tried to call it like this: TTAlertViewController* vc = [[TTAlertViewController alloc]…
Idan
  • 5,717
  • 10
  • 47
  • 84
0
votes
2 answers

Cannot get UIAlert to work

Does somebody see something wrong with this? I have an UIAltertView but get an EXC_BAD_ACCESS when I click any of the two buttons: UIAlertView *alert = [[UIAlertView alloc] init]; [alert setTitle:@"First Sync"]; [alert setMessage:@"The…
Luuk D. Jansen
  • 4,402
  • 8
  • 47
  • 90
0
votes
4 answers

How to set the Background image for UIAlert view in iPhone?

I want to set the custom image as background for alert view.If i set the image view frame size as static, then it displayed properly. But i have passed the message contents are dynamically displayed, so some times the contents is small and some…
Pugalmuni
  • 9,350
  • 8
  • 56
  • 97
0
votes
2 answers

"cellForRowAtIndexPath" for a tableview inside alertviewcontroller not called

I am adding a tableview inside an alertviewcontroller , I have given delegate and datasource to the table. All delegate and datasource methods except cellForRowAtIndexPath are called. I have return a static value for number of rows in section to…
Abhishek Master
  • 192
  • 2
  • 19
0
votes
2 answers

UIAlert view doesnt show up in Swift ?

I have written the following function and what I am trying to do is to notify the user by showing an alert. func handleRecievedQR (QRCode : String) { let scannedCode = QRCode.split(separator: ",") let attendance = ScannedQRCode(issuer:…
Danial Kosarifa
  • 1,044
  • 4
  • 18
  • 51
0
votes
4 answers

Why doesn't the UIAlertView work?

I am testing this piece of code but when I run it, it does not trigger the UIAlertView. When the code hits If (ongoingGame = YES) and NSLog it jumps directly to the 'otherButtonTitles:nil' without executing the UIAlertView. Can someone please…
PeterK
  • 4,243
  • 4
  • 44
  • 74
0
votes
2 answers

$sce.trustAsHtml is not working?

I have a alert that is as below: $scope.addAlert('danger', $sce.trustAsHtml('Invalid Alias Name: Certain limitations apply to alias naming. Please refer to the documentation')); and I am binding this to html page…
Pooja Thapa
  • 83
  • 1
  • 16
0
votes
1 answer

Cropped characters - iOS11 - Alert Dialog

Cropped characters - iOS11 - Alert Dialog. How to fix it? [ func settingsButtonPressed() { let alert = UIAlertController(title: nil, message: nil, preferredStyle: .actionSheet) let closeAction = UIAlertAction(title: "Anuluj", style:…
0
votes
1 answer

Why is this alertView code not working? No error, just not doing as it should

-(void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex { NSLog(@"buttonindex: %i", buttonIndex); NSLog(@"tag: %i", alertView.tag); if ((alertView.tag <= 3) && (alertView.tag >= 1)) { } //Between 1 and…
Andrew
  • 15,935
  • 28
  • 121
  • 203
0
votes
0 answers

How to call an action after an alert closed in iOS

I have a subclass of UILabel called AlertLabel AlertLabel.h #import @interface AlertLabel : UILabel - (id)initWithFrame:(CGRect)frame; - (void)alertTitle:(NSString *)string; @end AlertLabel.m - (id)initWithFrame:(CGRect)frame { …
markl
  • 7
  • 5
0
votes
2 answers

Change UIAlertView selector from didDismissWithButtonIndex

Is it possible to change the selector of a UIAlertView without having to create a custom alert view subclass? I want to change it from didDismissWithButtonIndex to something else.
John
  • 10,839
  • 8
  • 26
  • 31
0
votes
3 answers

Remove separators in UIAlert

There is way to remove separators between actions in UIAlert (actionSheet style)?
protecthor
  • 11
  • 1
0
votes
2 answers

iOS show UIAlert when app is running in background

Is there a way for an app running in the background to display/schedule this kind of alert dialog? EDIT: I know about push notifications, I'm looking for something more intrusive.
Avery235
  • 4,756
  • 12
  • 49
  • 83