KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm pretty new to objective C and I'm just trying to figure out if I can use a block or a selector as the UIAlertViewDelegate argument for UIAlertView - and which is more appropriate? I've tried the following but it just isn't working so I'm not sure if I'm on the right track or not? UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Checked In" message:responseString delegate:^(UIAlertView * alertView, NSInteger buttonIndex) { NSLog(@"Done!"); } cancelButtonTitle:@"OK" otherButtonTitles: nil]; Thanks!
Tags (comma-separated)
Save Edits
Cancel