Lambda-Alert
https://github.com/zoul/Lambda-Alert
ラムダ式で処理を書ける素敵なライブラリ。
//Demoより抜粋 LambdaAlert *alert = [[LambdaAlert alloc] initWithTitle:@"Test Alert" message:@"See if the thing works."]; [alert addButtonWithTitle:@"Foo" block:^{ NSLog(@"Foo"); }]; [alert addButtonWithTitle:@"Bar" block:^{ NSLog(@"Bar"); }]; [alert addButtonWithTitle:@"Cancel" block:NULL]; [alert setDismissAction:^{ NSLog(@"Alert was dismissed."); }]; [alert show];