Alert Dialog in Titanium


var alertDialog = Titanium.UI.createAlertDialog({

title:’Welcome to Reefland Pro’,

message:’To begin please add your first aquarium with the plus button above. if you need to change metric system click on settings.’,

buttonNames : [‘Ok’]

});

alertDialog.addEventListener(‘click’, function(e) {

switch(e.index) {

case 0:

Ti.API.info(“Done”);

break;

 

}

});

alertDialog.show();

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Blog at WordPress.com.

Up ↑

%d bloggers like this: