AlertDIalog
It seems that the "cancel" property for AlertDialog does not work. Here is my code:
// NETWORK CONNECTION CHECK
if (network.online == false) {
Ti.UI.createAlertDialog({title:'No Cellular Data Network', message:'Please connect to a cellular data network.', buttonNames:['Hide', 'Close'], cancel:1}).show();
}
"Hide" is darker, when "Close" should be. I guess I could just switch the names around, but I rather the "Hide" on the left side…
2 Answers
-
I just hit this same thing. It works on android, returning a true or false for e.cancel, but on the iphone e.cancel always returns the digit 1. So instead I used e.index and just kept track of which was cancel myself (index counts from 0)
-
Bump!