It looks like you're new here. If you want to get involved, click one of these buttons!
waxClass{"UIAlertViewDelegate",protocols = {"UIAlertViewDelegate"}} alertViewDelegate = UIAlertViewDelegate:init() function alertViewDelegate:alertView_clickedButtonAtIndex (a, b) print(">> Tapped on button ", b) -- This is generally 0 based, so the OK Button will be 0 and then One =1, Two=2, Three=3 and so on. end alert = UIAlertView:initWithTitle_message_delegate_cancelButtonTitle_otherButtonTitles("title", "message",alertViewDelegate,"OK",nil) alert:addButtonWithTitle("One") alert:addButtonWithTitle("Two") alert:addButtonWithTitle("Three") alert:show() |
Dislikes: Ghando
Comments
http://howto.oz-apps.com/2012/09/creating-picker-views-gideros-ios-only.html
Likes: atilim
Author of Learn Lua for iOS Game Development from Apress ( http://www.apress.com/9781430246626 )
Cool Vizify Profile at https://www.vizify.com/oz-apps