- 把
YJActionSheetView的接口和实现文件复制到项目 - 初始化控件对象,对标题数组和内容数组进行赋值
- 控件提供两个工厂方法以调用
-
图片 + 文字 的列表
[YJActionSheetView showWithTitleArray:@[@"网易", @"阿里", @"腾讯", @"百度", @"微信支付", @"支付宝支付"] imageArray:@[img, img, img, img, img, img] headerString:@"分享" completionHandle:^(NSInteger index) { NSLog(@"%ld", index); }]; -
纯文字的列表
[YJActionSheetView showWithTitleArray:@[@"网易", @"阿里", @"腾讯", @"百度", @"微信支付", @"支付宝支付"] headerString:nil completionHandle:^(NSInteger index) { NSLog(@"%ld", index); }];
-
两个工厂方法中的headerString可以为空
- 2016.09.21 首次提交
- 2016.10.14 修改方法去除传入的superView,直接添加到window
- 2017.02.28 修复约束错误
