Giter Site home page Giter Site logo

Comments (7)

ly918 avatar ly918 commented on May 14, 2024

Like:

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

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

from lcactionsheet.

ly918 avatar ly918 commented on May 14, 2024
  • (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];
    }

from lcactionsheet.

iTofu avatar iTofu commented on May 14, 2024

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

from lcactionsheet.

iTofu avatar iTofu commented on May 14, 2024

三楼正确

from lcactionsheet.

ly918 avatar ly918 commented on May 14, 2024

想传个数组指针怎么办

from lcactionsheet.

iTofu avatar iTofu commented on May 14, 2024

这个不行✋🏻

发自我的 iPhone

在 2016年8月5日,上午9:29,GNR [email protected] 写道:

想传个数组指针怎么办


You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

from lcactionsheet.

iTofu avatar iTofu commented on May 14, 2024

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

from lcactionsheet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.