iTofu / LCActionSheet

一款简约而不失强大的 ActionSheet,微博、微信和 QQ 都采用了极其类似的样式,完全支持 Swift。
https://note.leodev.me/LCActionSheet/
MIT License
821 stars 144 forks source link

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

Closed ly918 closed 8 years ago

ly918 commented 8 years ago

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

ly918 commented 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];

ly918 commented 8 years ago
iTofu commented 8 years ago

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

iTofu commented 8 years ago

三楼正确

ly918 commented 8 years ago

想传个数组指针怎么办

iTofu commented 8 years ago

这个不行✋🏻

发自我的 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 commented 8 years ago

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