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

write with argument list #38

Closed
passol1988 opened this issue May 20, 2016 · 1 comment
Closed

write with argument list #38

passol1988 opened this issue May 20, 2016 · 1 comment

Comments

@passol1988
Copy link

passol1988 commented May 20, 2016

local alert = UIAlertView:initWithTitle_message_delegate_cancelButtonTitle_otherButtonTitles("title", "message", nil, "cancel", "continue", nil)

otherButtonTitles can take multiple arguments, how can I pass the parameters?

@intheway
Copy link

variable method can't be called dynamically. you can use like this:

local alert = UIAlertView:init();
alert:setTitle(title);
alert:setMessage("aaaa");
alert:setTitle("bbbb");
alert:setDelegate(self);
alert:addButtonWithTitle("cancel");
alert:addButtonWithTitle("ok");
alert:setTag(20147701);
alert:show();

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