Questions tagged [alertview]
85 questions
1
vote
3 answers
How to add UIActivityIndicatorView at center of UIAlertView?
As the title, I want to add an UIActivityIndicatorView instance at center of an UIAlertView instance. Here is my code:
alertView = [[UIAlertView alloc]initWithTitle:@"Processing" message:@"" delegate:nil cancelButtonTitle:nil…

Nguyen Minh Binh
- 23,891
- 30
- 115
- 165
1
vote
3 answers
Dim background like when alertView pops up
I have a tableview that shows up when I push a button. This tableview is added on top of my other UITableview. What I want to do now is when the tableview shows up. My background view is dimmed like when an alertview pops up. You can see an example…

Steaphann
- 2,797
- 6
- 50
- 109
1
vote
2 answers
How to add textfield to an alert view? Xcode 4.5 iOS6
How do I add a textfield to the alertview? I'm trying to do an app where before the app commits the editing, the user must authenticate 1st by typing his/her password on the said alertview but how can I do this? It seems like the code I've searched…

Lorenz de Guzman
- 241
- 1
- 3
- 12
1
vote
2 answers
My alertview for the UIWebView doesn't work
Why doesn't this code work? All I have is this:
-(void)_webview:(UIWebView *)_webview didFailLoadWithError:(NSError *)error {
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Error!" message:@"You have no internet connection!"…

user1941966
- 449
- 5
- 18
1
vote
1 answer
how to resize and customize AlertView with image and button
I first use " [UIAlertView alloc] initWithTitle: " to resize and customize AlertView with image but failed.
Then I use following codes, all works fine ( alertView resized and have a image with it), But just can't have a button to dismiss the…

user1188849
- 107
- 1
- 12
1
vote
2 answers
UIAlertView, NSURLConnection and wait_fences
I'm trying to display a UIAlertView with UIActivityIndicator after a user presses "log in" in a modal view controller. To log in, the credentials are sent to a server using sendAsynchronousRequest:queue:completionHandler: from the NSURLConnection…

RDM
- 4,986
- 4
- 34
- 43
1
vote
1 answer
Authentication Challenge
i try to access a protected webfolder with the webview. with "hard coded" user and pass it works, but my plan is to pop up an alertview to enter user and pass. here is the part of code:
-(void)connection:(NSURLConnection *)connection…

HugoBoss
- 95
- 3
- 11
1
vote
2 answers
Adding Multiple Alerts to a Single Alert View in Xcode
First off I am fairly new to xcode. I am trying to add multiple alerts to a single view. I am creating a form for an ipad which allows the users to enter in information into text boxes. Since there are multiple text boxes that are required to fill…

Nick
- 71
- 1
- 2
- 8
1
vote
1 answer
Xcode and alertview with view controller
What i am trying to achieve is go to another view when my alert view button is clicked. My alert view is inside my loadingView, this alert view is called from another class called classA.
This is how it is called in classA.
[LoadingViewController…

Hexark
- 413
- 6
- 22
0
votes
2 answers
UIAlertView with UITextField - Saving with NSUserDefaults
In the .m file of my ViewDidLoad I have the following code:
if (![@"1" isEqualToString:[[NSUserDefaults standardUserDefaults] objectForKey:@"Name"]]) {
[[NSUserDefaults standardUserDefaults] setValue:@"1" forKey:@"Name"];
[[NSUserDefaults…

Blade
- 1,435
- 1
- 14
- 22
0
votes
2 answers
Xcode: If Statements with textbox
So im having problems do this. This code wont work the way i want it to.
if (answer.text == @"text") {
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"title" message:@"message" delegate:nil cancelButtonTitle:@"Ok"…

Tyler
- 3
- 3
0
votes
1 answer
SwiftUI - CustomAlertView - Run function with parameters on Button press
I have a CustomAlertView with the following parameters:
public var title: String
public var buttonText: String
public var buttonAction: (() -> ())?
... a dedicated function is called via:
Button(action: {buttonAction() })
I can run the…

Nathanael Tse
- 171
- 13
0
votes
1 answer
Alertview not called when no Internet access
Use the following standard calls to get data from a server - and standard Alert if there's an error - like no internet access. If I turn off the network the app crashes, never hitting the NSLog calls for *response or *error, never entering the…

user3741598
- 297
- 1
- 12
0
votes
0 answers
The layout from alert dialog gets messed up with long scrollView
I have an alert dialog which has a custom view. In this view I add checkboxes programmatically. The problem is that when I have like 30 checkboxes in my scroll view, the alert dialog's layout gets messed up. The message falls of the screen and the…

Hendrik Clercx
- 129
- 1
- 9
0
votes
1 answer
"Application tried to present modally an active controller" iOS8 - When i want to present an AlertView in logging out
Well, I am really a beginner in terms of swift 2 and I am having an error in presentViewController, this is just an alert view before logging out. But I am receiving an application tried to present modally an active conroller. Well I have a menu bar…

Reginald
- 113
- 2
- 10