将CustomAlertView.h跟CustomAlertView.m文件Add到你的工程中即可。 Controller中调用
CustomAlertView *alertView = [[CustomAlertView alloc] initWithListData:languages];
alertView.tapDoneAction = ^(NSInteger tag){
if (tag==999) {
NSLog(@"999:你没有选择啊",tag);
}else{
NSLog(@"你选中的数据在数组中下标-->Array[index=%ld]",tag);
}
};
[[UIApplication sharedApplication].delegate.window.rootViewController.view addSubview:alertView];
😂😂😂