Quote:
Originally Posted by HoofSC
Can anyone specify whether or not you can somehow grab the value of user input in TWO UITextFields added to the alertView (in Succession): ????
Code:
UIAlertView *myAlertView = [[UIAlertView alloc] initWithTitle:@"Input New Values" message:@"Enter new values" delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:@"Record New Values", nil];
[myAlertView addTextFieldWithValue:nil label:@"<Value 1 Placeholder>"];
[myAlertView addTextFieldWithValue:nil label:@"<Value 2 Placeholder>"];
[[myAlertView textField] becomeFirstResponder];
[myAlertView show];
[myAlertView release];
|
Hi, grab each individual text field with [myAlertView textFieldAtIndex:0]