It looks like you're new here. If you want to get involved, click one of these buttons!
return 1 == string.find(model, "iPad")
With Gideros/wax and the player, UI elements can be added and changes viewed instantly. Does anyone else offer this speed of development/test?
@bowerandy - a few commentsThe demo app fails in the simulator; I changed the iPad detection (IosImagePicker.lua, line 43) to: return 1 == string.find(model, "iPad")
and things now work properly in the simulator. (It was trying the iPhone picker by mistake, when using the iPad emulator.)Also, I might suggest perhaps doing up two example apps with this:- UIKit demo - Do a version of the test project that does the same thing (buttons, webview, etc.) to show how the common UI elements are used, but from wax rather than UIKit. (Maybe their tableview example, too.)- One of the getting started tutorials, http://mobile.tutsplus.com/tutorials/iphone/iphone-wax-part-2/ would be interesting if tweaked to work with Gideros/wax.I assume for the latter, we ignore the AppDelegate.lua stuff and use getRootViewController() instead.Finally, I don't suppose there's a way to have errors passed back to Gideros Studio, rather than crashing the player?
@ar2rsawseen, have you seen this? https://github.com/mkottman/AndroLuaThis is perhaps the Android version of Wax, so all Android users can rejoice and perhaps use this.
@OZApps From the description, AndroLua uses LuaJava:http://www.keplerproject.org/luajava/https://github.com/jasonsantos/luajavaAlso @alexzheng posted this link: http://code.google.com/p/jnlua/Both seem good solutions.
switch = UISwitch:initWithFrame(CGRect(100,10,0,0))
switch:addTarget_action_forControlEvents(self, "theFunc", UIControlEventValueChanged)