How do I store custom properties for OptionDialog options in IOS?


var dialog = Titanium.UI.createOptionDialog({
    options:['Option 1', 'Option 2', 'Option 3']
});
 dialog.addEventListener('click',function(e) {
    switch (e.index) {
        case 0: //do something
               break;
        case 1: // Option 2
               break;
    }
});
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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s