Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11033] iOS: Implement persistent support for Ti.UI.OptionDialog

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-10-05T17:54:33.000+0000
Affected Version/sRelease 3.0.0
Fix Version/sRelease 3.0.0, Sprint 2012-20 API, 2012 Sprint 20
ComponentsiOS
Labelsapi, module_optiondialog, parity, qe-review, qe-testadded
ReporterHieu Pham
AssigneePing Wang
Created2012-09-20T16:47:01.000+0000
Updated2012-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.

Comments

  1. Ping Wang 2012-09-25

    PR https://github.com/appcelerator/titanium_mobile/pull/3051
  2. Sabil Rahim 2012-10-05

    CR & FR
  3. Natalie Huynh 2012-12-04

    Tested with 3.0.0.v20121130200208 on iPhone 4 5.1.1

JSON Source