Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-13064

iOS: Date Picker getValue() returns null

    Details

      Description

      Problem description

      When i call getValue() of date picker it returns null. It is necessary to store the date value form the picker 'change' event to be able to retrieve it.

      Steps to reproduce

      Use the following code to reproduce:

      var mainWindow = Ti.UI.createWindow({
          title : 'Lab',
          backgroundColor : 'white',
          fullscreen : false,
          navBarHidden : true,
          exitOnClose : true,
          orientationModes : [Titanium.UI.PORTRAIT]
      });
       
      var picker = Ti.UI.createPicker({
          type : Ti.UI.PICKER_TYPE_DATE,
          selectionIndicator : true,
          useSpinner : true
      });
       
      var showDate = Ti.UI.createButton({
          title : 'show date',
          bottom : 20
      });
      showDate.addEventListener('click', function(e) {
          alert(picker.getValue());
      });
       
      var view = Ti.UI.createView({
          width : Ti.UI.FILL,
          height : Ti.UI.FILL
      });
      view.add(picker);
      view.add(showDate);
       
      mainWindow.add(view);
      mainWindow.open();
      

        Attachments

          Activity

            People

            • Assignee:
              mstepanov Max Stepanov
              Reporter:
              sameeh.harfoush Sameeh Harfoush
              Reviewer:
              Sabil Rahim
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-15894
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration