导读
1.只有一个取消按钮的弹框
[Objective-C] 纯文本查看 复制代码 [CusAlertView showCusAlertViewWithTitle:@"提示" message:@"这是只有一个取消按钮的弹框" cancleButtonTitle:@"确定" clickHandle:^(NSInteger index) {
}];
2.两个按钮的弹框
[Objective-C] 纯文本查看 复制代码 [CusAlertView showCusAlertViewWithTitle:@"提示" message:@"这是两个按钮的弹框" cancleButtonTitle:@"取消" okButtonTitle:@"确定" okClickHandle:^{
} cancelClickHandle:^{
}];
3.多个按钮的弹框
[Objective-C] 纯文本查看 复制代码 [CusAlertView showCusAlertViewWithTitle:@"提示" message:@"多个按钮的弹框" cancleButtonTitle:@"取消" okButtonTitle:@"确定" otherButtonTitleArray:@[@"拍照",@"相册"] clickHandle:^(NSInteger index) {
//根据索引判断点击按钮的事件
}];
框架源码下载
|