Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 7th, 2012  |  syntax: None  |  size: 0.59 KB  |  hits: 20  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. datepicker and timepicker modal dialog not showing set and cancel buttons
  2. var picker = Ti.UI.createPicker({
  3.  
  4.    type: Titanium.UI.PICKER_TYPE_DATE,
  5.    value: new Date(),
  6.    top:200
  7.  
  8. });
  9.        
  10. var picker = Ti.UI.createPicker();
  11.                 picker.showDatePickerDialog({
  12.                     callback: function(e) {
  13.                         if (e.cancel) {
  14.                             Ti.API.info('user canceled dialog');
  15.                         } else {
  16.                             Ti.API.info('user selected date: ' + e.value);
  17.                         }
  18.                     }
  19.                 });