Closed ly918 closed 8 years ago
Like:
(V Lastest)LCActionSheet * sheet = [LCActionSheet sheetWithTitle:@"操作" delegate:self cancelButtonTitle:@"取消" otherButtonTitles:?????? nil];
(V 1.2.1)[LCActionSheet sheetWithTitle:@"操作" buttonTitles:_hiddenTool?@[@"保存二维码"]:@[@"保存二维码",@"二维码生成工具"] redButtonIndex:-1 delegate:self];
(void)sheetTest{ /* 错误
LCActionSheet * sheet = [LCActionSheet sheetWithTitle:@"操作" cancelButtonTitle:@"取消" clicked:^(LCActionSheet *actionSheet, NSInteger buttonIndex) {
NSLog(@"%d",(int)buttonIndex);
} otherButtonTitles:@[@"Action1",@"Action2",@"Action3"], nil];
[sheet show];
*/
LCActionSheet * sheet = [LCActionSheet sheetWithTitle:@"操作" cancelButtonTitle:@"取消" clicked:^(LCActionSheet *actionSheet, NSInteger buttonIndex) {
NSLog(@"%d",(int)buttonIndex);
} otherButtonTitles:@"Action1",@"Action2",@"Action3", nil];
[sheet show]; }
二楼传的是正确的,现在的版本采取了类似系统 UIActionSheet 的方式传数组参数,多参数传递,用逗号隔开即可。
三楼正确
想传个数组指针怎么办
这个不行✋🏻
发自我的 iPhone
在 2016年8月5日,上午9:29,GNR notifications@github.com 写道:
想传个数组指针怎么办
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.
@ly918 现在又可以使用数组初始化了哦~
1.2.1可以添加数组,最新版如何传入数组捏???