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

iOS9: UIPickerView and UIDatePicker are now resizable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Low
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Release 5.1.0
    • Component/s: iOS
    • Labels:

      Description

      UIPickerView and UIDatePicker are now resizable and adaptive—previously, these views would enforce a default size even if you attempted to resize them. These views also now default to a width of 320 points on all devices, instead of to the device width on iPhone.
      Interfaces that rely on the old enforcement of the default size will likely look wrong when compiled for iOS 9. Any problems encountered can be resolved by fully constraining or sizing picker views to the desired size instead of relying on implicit behavior.

      Demo code:

      var win = Ti.UI.createWindow();
      var picker = Ti.UI.createPicker({height: 500});
      var data = [];
       
      data[0]=Ti.UI.createPickerRow({title:'Bananas'});
      data[1]=Ti.UI.createPickerRow({title:'Strawberries'});
      data[2]=Ti.UI.createPickerRow({title:'Mangos'});
      data[3]=Ti.UI.createPickerRow({title:'Grapes'});
       
      picker.add(data);
      picker.selectionIndicator = true;
       
      win.add(picker);
      win.open();
      

      On iOS8, nothing should change and the height is ignored. On iOS9, the height should be honored and the picker should resize.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                hknoechel Hans Knöchel
                Reporter:
                cng Chee Kiat Ng (Inactive)
                Reviewer:
                Chee Kiat Ng (Inactive)
              • Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                    Git Source Code