uialertview

Knowing when user has pressed cancel buttons during In-App purchase

I am writing code for in-app purchases and using a "Processing..." view with an activity indicator to block the "Buy Now" button once a purchase is initiated. However, how can you tell when the user hits a "Cancel" button since those alert views are coming from the AppStore.app? Is there a delegate method that gets called when those ...

ios4 alert view problem

Has anyone had this problem with iOS4. I am getting the alert view shift up the first time and without dismissing if you send the app to background mode and bring it back then the alert is placed correctly. Alert view is also flashing if it is open while I send the app into background. Any help to get around this problem will be great.....

UITextView inside UIAlertView subclass

Hi, I'm trying to put a UITextView inside a custom subclass of UIAlertView that I create using a background image of mine. The UITextView is only for displaying large quantities of text (so the scrolling). Here is the code of my subclass - (id)initNarrationViewWithImage:(UIImage *)image text:(NSString *)text{ if (self = [super init]...

problem with UIAlertView

hi, i am trying to call and alert when a button is pressed. i use this : -(IBAction)Add { UIAlertView *alert = [[UIAlertView alloc] initWithTitle: @"add button pressed" message:@"Add to record" delegate:nil ...

2 UIAlertView one after the other

Hi, I have an 2 UIAlert which is displayed I press on a button. I want the 2nd alert to be visible only when the first UIAlert is dismissed that is when we have pressed the first OK button. How should I proceed please? Below is my code: - (IBAction)button:(id)sender { UIAlertView *view; view = [[UIAlertView alloc] initWithTitle: ...

How to make a pseudo-alertview with a nib?

I want to put on the screen a pseudo-UIAlertView which is just a UIView plus buttons in a nib I've created with IB.... what's the best way of doing this? ...

UITextField not responding to onscreen keyboard presses?

Hey guys, I've got a really weird problem whereby I when I click on a UITextField the onscreen keyboard pops up, and I can delete characters in the text field - but I cannot type into it! Background info: I'm placing the UITextField into a UITableViewCell, which in turn is being got from a table that is being placed into a UIAlertVie...

EXC_BAD_ACCESS while creating a simple UIAlertView

While declaring a simple UIAlertView, with the following code, I get the above mentionned error on that line: UIAlertView * alerteken = [[UIAlertView alloc] initWithTitle:@"Email" message:@"Please enter the @mailinator.com email address you want to read:" delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:@"Ok"]; What am I d...

static UIAlertView not called willPresentAlertView

In the below code not invoked the willPresentAlertView method. Why? The method is static? or The Alert value is static? @interface ShowAlert : NSObject <UIAlertViewDelegate> static UIAlertView* alert; +(void) showAlert:(NSString*) msg{ alert = [[UIAlertView alloc] initWithTitle:nil message:[NSString stringWithFormat:...

Change UIAlertView width

In my humble opinion, the default alert view size on the iPad is a way too small. I have seen this and still have the same issue as the original poster there http://stackoverflow.com/questions/2763713/change-width-of-uialertview-in-ipad When reassigning the frame property, x-origin, y-origin and height all change as I tell them to, but...

iphone sdk: CGAffineTransform not working in iOS 4???

hi everyone, i'm using the following code to move a uialertview with a uitextfield in it. The alertView is supposed to slide up when the keyboard appears and slide backdown as soon as it dissappears. The following code worked perfectly fine for me under ios 3.1.2. But for some reason it does not work under ios 4.0..... The issue seems t...

Core Location Manager Prompt/Alert problem

I have come across an interesting problem which I am unable to debug. My application is using core location services and works fine in both the simulator and on the device once location services are enabled. I have tested it by manually toggling the permission in the settings pane. However for some reason when the user has not set any...

Inactive button in UIAlert View

In my iphone-app, I have a "Share" button in my Navigation bar, that pops up a UIAlertView with the options "Twitter" and "Facebook". When a user has already sent something to Twitter, I don't want him to be able to sent it again. One way of preventing this, is to just remove the Twitter button from that Alert. This makes the Alert kind ...

iphone: how to block touches while showing some UIView

Hi, my current scenario is this -> i am showing a view controller that has a button. when i click that button a small view opens. now what i want. when that view is shown i don't want user to touch below that ( even in navigation bar's back button ). the same thing which UIAlertView does. how i can achieve that thing with my custom view...

UIAlertView on iPhone with 2 buttons. How to make them both look the same?

Hi! I'm using this code: UIAlertView *alert = [[UIAlertView alloc] init]; [alert setTitle:@"Select Tutorial"]; [alert setMessage:@""]; [alert setDelegate:self]; [alert addButtonWithTitle:@"Basic"]; [alert addButtonWithTitle:@"Advanced"]; alert.tag = e_VTselecttutorial; [alert show]; [alert release]; It produces a window with two butt...

MonoTouch - reuse UIAlertVIew?

Should instances of UIAlertView be reused when possible? Or is wrapping them in a using-block the best practice? For one situation, I created a (non-modal) MessageBox class (just like WinForms or WPF). I mainly use it for convenience. Another situation is a custom UIAlertView that I've subclassed that has more advanced layout. I w...

UIAlertView Display while iPhone is asleep and locked

I am writing an app the is pretty much always going to be open (hardly ever would run in background) and I want to be able to alert the user with a sound, vibrating the phone, and showing an alert message when there is a state change. The problem I am having is that when I use the UIAlertView, the AlertView seems to be hit or miss wheth...

Objective C - Making UIAlertView wait for user input?

I have a UIAlertView set up with a textfield like so: //***first set of code*** UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"User Input Required" message:@"Please enter data into the field" delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:@"Ok", nil]; [alert addTextFieldWithValue:nil label:@"[Enter Text]"...

UIAlert partially hidden on iPad horizontal orientation. How to move it up?

In my iPad app, I have an implementation of a login window as a UIAlertView subclass that adds two UITextField, using an idiom that's found on the net. The problem is that in horizontal orientation, the alert is partially hidden by the keyboard. Namely, the buttons are hidden. Of course, it's possible to hide the keyboard to reveal the ...

can I put a scrollable text field on a uialertview?

I am needing to alert something for an answer for a trivia game iOS app I am writing. I have an alert view that pops up and shows a scrollable uitextview...is Apple going to ding me for that? What are my options for showing large amounts of text in my alert? Thanks!! ...