Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hey 我发现没有以前好用啦 我又倒回到1.2.1啦 #21

Closed
ly918 opened this issue Aug 4, 2016 · 7 comments
Closed

Hey 我发现没有以前好用啦 我又倒回到1.2.1啦 #21

ly918 opened this issue Aug 4, 2016 · 7 comments

Comments

@ly918
Copy link

ly918 commented Aug 4, 2016

1.2.1可以添加数组,最新版如何传入数组捏???

@ly918
Copy link
Author

ly918 commented Aug 4, 2016

Like:

(V Lastest)LCActionSheet * sheet = [LCActionSheet sheetWithTitle:@"操作" delegate:self cancelButtonTitle:@"取消" otherButtonTitles:?????? nil];

(V 1.2.1)[LCActionSheet sheetWithTitle:@"操作" buttonTitles:_hiddenTool?@[@"保存二维码"]:@[@"保存二维码",@"二维码生成工具"] redButtonIndex:-1 delegate:self];

@ly918
Copy link
Author

ly918 commented Aug 4, 2016

  • (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];
    }

@iTofu
Copy link
Owner

iTofu commented Aug 4, 2016

二楼传的是正确的,现在的版本采取了类似系统 UIActionSheet 的方式传数组参数,多参数传递,用逗号隔开即可。

@iTofu
Copy link
Owner

iTofu commented Aug 4, 2016

三楼正确

@ly918
Copy link
Author

ly918 commented Aug 5, 2016

想传个数组指针怎么办

@iTofu
Copy link
Owner

iTofu commented Aug 5, 2016

这个不行✋🏻

发自我的 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.

@iTofu
Copy link
Owner

iTofu commented Aug 15, 2016

@ly918
现在又可以使用数组初始化了哦~

@iTofu iTofu closed this as completed Aug 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants