В настоящее время я использую следующий код для представления UIAlertView:
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Today Entry Complete"
message:@"Press OK to submit your data!"
delegate:nil
cancelButtonTitle:@"OK"
otherButtonTitles: nil];
[alert show];
[alert release];
Как мне получить, чтобы при нажатии "ОК" она запускает функцию, например -(void)submitData