[TIMOB-11033] iOS: Implement persistent support for Ti.UI.OptionDialog
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-10-05T17:54:33.000+0000 |
Affected Version/s | Release 3.0.0 |
Fix Version/s | Release 3.0.0, Sprint 2012-20 API, 2012 Sprint 20 |
Components | iOS |
Labels | api, module_optiondialog, parity, qe-review, qe-testadded |
Reporter | Hieu Pham |
Assignee | Ping Wang |
Created | 2012-09-20T16:47:01.000+0000 |
Updated | 2012-12-27T19:17:27.000+0000 |
Description
Implement persistent property for Option Dialog:
Ti.UI.setBackgroundColor('white');
var win = Ti.UI.createWindow({
title: 'Click window to test',
backgroundColor: 'white',
exitOnClose: true,
fullscreen: false
});
var opts = {
cancel: 2,
options: ['Confirm', 'Help', 'Cancel'],
selectedIndex: 2,
destructive: 0,
persistent: false,
title: 'Delete File?'
};
win.addEventListener('click', function(e){
var dialog = Ti.UI.createOptionDialog(opts).show();
});
win.open();
Run the code above. Click on screen. Press home key. Go back to app. You should not see the dialog.
PR https://github.com/appcelerator/titanium_mobile/pull/3051
CR & FR
Tested with 3.0.0.v20121130200208 on iPhone 4 5.1.1