Skip to content

Latest commit

 

History

History
29 lines (25 loc) · 967 Bytes

README.md

File metadata and controls

29 lines (25 loc) · 967 Bytes

a-easy-multi-choose-type-view

  • 喜欢的话就赏个小星星吧😊

使用方式

    NSArray *arr = @[@"上班打卡",@"下班打卡",@"白班打卡",@"晚班打卡"];
    //1.初始化
    XYChooseTypeAlertView *alertV = [[XYChooseTypeAlertView alloc] initWithFrame:CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width, [UIScreen mainScreen].bounds.size.height) withTitleArray:arr];
    //2.设置代理
    alertV.delegate = self;
    //3.显示
    [alertV showChooseTypeView];

delegate

- (void)chooseTypeAlertView:(XYChooseTypeAlertView *)alertView didSelectedIndex:(NSInteger)index
{
    //选择后调用
    NSLog(@"index = %zd",index);
}

-  (void)chooseTypeAlertViewWillDisappear:(XYChooseTypeAlertView *)alertView
{
    NSLog(@"消失调用");
}

image