uialertview

Check if a UIAlertView is visible

I have a situation where I would like to pop up an alert view, but the event that shows the alert view could occur as often as every 5 seconds. I'd rather not have a stack of alert views for the user to click OK on so I was wondering. How do you check if a UIAlertView is currently showing? ...

What is the easiest way to make a UIAlertView that's tinted of a different color?

My application uses a black navigation bar and other custom colors for various UI components and the dark-blue tinted alert views look really out of place. I'd like to make the alert view translucent black without having to resort to using an image file. I'm not opposed to generating the UIImage, since I get that the only way to change...

How can I show UIAlertView on Cocos2d Layer in iPhone?

I have a layer in my game. At finishing of game I want to show user an UIAlertView for restarting or quitting the game. But it is not working. I am also given the delegate UIAlertViewDelegate to layer. Any Solutions? My Code follows, -(void)gameFinished{ [[UIApplication sharedApplication] setIdleTimerDisabled:NO]; [self unschedule:@s...

UIAlertView Messages

Trying to include a instance variable in a message that a UIAlertView Shows. lostAlert = [[UIAlertView alloc] initWithTitle:@"Sorry" message:(@"You Were Wrong, the correct structure was %@", structureName) delegate:self cancelButtonTitle:@"Dismiss" otherButtonTitles:nil]; however, when the Alert is shown, no message is shown. Any i...

Iphone: UIAlertView works in simulator but makes the app freeze on iphone

Hi.. I`m working on a project where an alert should pop up after returning from a controller with an empty value. It does pop up in the simulator, but on the iphone the app freeze and exit when returning from the controller. Any ideas? Here is my code: - (void)manualBarcodeViewControllerDidFinish:(ManualBarcodeViewController *)con...

Change size of UIAlertView buttons

I have three buttons in a UIAlertView, and I only want to change the size of two of them so that I can have toe first two on their own line and then the third button on it's own line.. ...

prevent UIAlertView from dismissing

As a form of validation, is there any way to prevent an alert view from dismissing when pressing an "OK" button? Scenario: I have 2 text fields in the alertview for username/password. If both are empty and the user presses "OK", I do not want the alert to be dismissed. ...

[iPhone Obj-C] How to create "otherButtonTitles"?

I have the AlertView working perfectly with a "cancelButtonTitle:@"Cancel"" and "otherButtonTitles:nil". My question is how to get other buttons. When I only change the "otherButtonTitles:@"2nd Button"", then the iPhone simulator just crashes out of the app and into the homescreen. ...

How can I temporary disable "low battery" UIAlertView on iPhone?

I'm developing something like a stopwatch, so I have to turn off that below 20% battery alert view somehow during a time measuring session (I will inform the user about battery percentage elsehow). I just couldn't google for any answer. ...

How to add a UIScrollView to a UIAlertView

I want to have a UIScrollView that is inside of my UIAlertView. Code would be greatly appreciated. ...

Is it possible to NOT dismiss a UIAlertView

The UIAlertviewDelegate protocol has several optional methods including: - (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex; This would seem to suggest that not all button clicks actually dismiss the alert view. However I see no way of configuring the alert view to NOT automatically dismiss with any...

Question regarding iphone allowance of custom notifications

I have an app that I am working on, and part of its main functionality is to alert the user to do something. So even though they aren't in the app, I want to be able to pop up an alert from the app, reminding them to do something. Is that allowed with the iPhone sdk? Maybe it isn't even a big deal at all, but for some reason I was thinki...

UITableViewCell variable height with multiple UILabels and IB

Alright so I have a situation here that is making me go crazy. I am loading a UITableView with a custom UITableViewCell. Now this cell has couple of UILabel's in it. so the order is: Label1 Label2 Label3 Label4 Now Label2 has a fixed height. Label1, Label3 and Label4 will need to change their height according to the size of string. I...

How do you create a multi button confirmation on the iPhone?

On the iPhone, in the Calendar App when you press the "Delete Event" button a confirmation slides in from the bottom. Does anyone know of any example code for this, or is it just a short view presented modally with a custom background? If this is made using a custom view, do you know where I can get a background graphic the same as the ...

show rating alert when deleting app in iphone?

I have seen in most of the apps which i install using itunes has shows a alert please rate the app when deleting the app? is it by default behaviour or we can create it programmatically in our app? ...

iPhone: Is it Possible to Hide and Unhide UIACtionSheet Buttons ?

Hi. I am using FBConnect in my app. The log in action sheet buttons are title "Log in Facebook" and "LogOut Facebook" but I want to display "Log into Facebook" and "Publish to Facebook". Currently, it looks like this... ...but I want it to look like this... ... possibly set in these methods: - (void)session:(FBSession*)session did...

iPhone SDK: how to get the value of a UITextField in an alert?

I'm really new at this. I've been working my way through a couple of "HelloWorld" type tutorials that basically have a text field, a button, and when you click the button it alerts whatever's in the text field. I've gotten as far as getting an alert to show and being able to set the title, message, and button text directly. However my at...

Hiding UIAlertView Opened in Another Function (iPhone SDK)

I am using the solution posted in this thread: http://stackoverflow.com/questions/1832459/how-to-show-a-alert-when-user-click-on-use-button-after-shooting-a-picture-using However, that gave an error on the following line that "saveImage" was undeclared. saveImage = [[UIAlertView alloc] initWithTitle:@"Sa... So I changed the code to r...

Retain object through UIAlertView/UIActionView dialogs

I'm working on a local (to the method) custom object and need to display a dialog (UIActionSheet or UIAlertView) to the user. What's the best way to get access to same object when delegate is called after user interacts with the dialog? Any Cocoa tricks besides adding another instance variable to current class? ...

UIAlertView / Threading issue

In my App, when a certain button is pressed, I call a method (postButtonClicked:) that parses a web service on a separate thread. I then display the user an UIAlertView to inform them whether the call was successful or not. Here is the code I use: - (void)postButtonClicked:(id)sender { [NSThread detachNewThreadSelector:@selector(p...