I need to enter an input request in my application and I tried this
// Create a new item UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"New item" message:@"Enter a name for the item" delegate:nil cancelButtonTitle:@"Cancel" otherButtonTitles:@"Add", nil]; alert.alertViewStyle = UIAlertViewStylePlainTextInput; [alert show];
And then process it like this:
- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex{
but it doesnβt look like a clickedButtonAtIndex call, why?
Regards, Erik
ios objective-c uialertview
Erik
source share