UIActionSheet封装成BlockAlertView 发表于 2015-08-23 | 分类于 iOS | 步骤1、初始化 1BlockAlertView *alertView = [[BlockAlertView alloc] initWithTitle:@"图片" style:AlertStyleSheet]; 2、添加title和block 123456789[alertView addTitle:@"保存" block:^(id result) { NSLog(@"保存"); }];[alertView addTitle:@"分享到微信" block:^(id result) { NSLog(@"分享到微信"); }]; [alertView addTitle:@"分享到QQ" block:^(id result) { NSLog(@"分享到QQ"); }]; 3、showInView 1[alertView show]; 4、alertView全局变量以免释放 1_blockView = alertView; 源码https://github.com/jackyshan/BlockAlertViewController