Skip to content

XY-Wing/a-easy-multi-choose-type-view

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published