Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 792 Bytes

File metadata and controls

23 lines (17 loc) · 792 Bytes

自定义弹出view

view 中展示数组数据,单击单选,使用简单,可扩展性强。

git展示

使用

CustomAlertView.hCustomAlertView.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];

😂😂😂