I am trying to display a native alert before the display group is return. But I am getting the following error :
Mon Apr 11 09:33:42 MacBook-Pro.local Corona Simulator[437] : kCGErrorIllegalArgument: _CGSFindSharedWindow: WID 720
Mon Apr 11 09:33:42 MacBook-Pro.local Corona Simulator[437] : kCGErrorIllegalArgument: CGSOrderWindowList
here is the code :<br><br>module(..., package.seeall)<br><br>function new ()<br> local gameGrp = display.newGroup ()<br><br>...<br>...<br> <br> local function onComplete (event)<br> <br> local action = event.action<br> <br> if event.index == 1 then<br> if "clicked" == event.action then<br> print ("click")<br> end<br> end<br> end<br> <br> local alert = native.showAlert( "Game Info", "It is your turn.", {"OK"}, onComplete) <br> return gameGrp -- display group for director<br><br>
Is there a way to do this ?
[import]uid: 6661 topic_id: 8769 reply_id: 308769[/import]