finscn / Ejecta

A Fast, Open Source JavaScript, Canvas & Audio Implementation for iOS
42 stars 6 forks source link

alerview call ? #12

Closed matrixreal closed 9 years ago

matrixreal commented 9 years ago

@finscn i try to call an alert view but always fails how can i done it whats the call please?

matrixreal commented 9 years ago

@finscn any news please ? hod do i call the alert view ? thanks a lot

finscn commented 9 years ago
var alertView = new Ejecta.AlertView("title","message","cancelTitle","b1Title","b2Title");
alertView.addEventListener("dismiss",function(buttonIndex){
    console.log("You click button: "+buttonIndex);
});
alertView.show();

the "b1Title","b2Title" ... are optional

matrixreal commented 9 years ago

@finscn thanks thats work perfect