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

iOS: Non-string PickerRow titles (integer,bool, ..) causing crash

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: Release 5.2.2
    • Fix Version/s: Release 5.4.0
    • Component/s: iOS
    • Environment:

      Titanium SDK 5.2.2
      appc 5.2.2
      iOS Simulator 8.4 iPad 2

    • Story Points:
      5
    • Sprint:
      2016 Sprint 08 SDK

      Description

      Steps to reproduce

      1. Create a Picker with 2 columns
      2. PickerRow title set to "0" in XML (or "1", "2", etc)
      3. App crashes immediately

      Setting the PickerRow title to "0" in the controller js works fine. Android either method works fine.

      index.xml

      <Alloy>
         <Window class="container">
            <View top="10" layout="vertical" height="Ti.UI.SIZE" width="Ti.UI.FILL">
              <Label color="white">How Much To Add?</Label>
              <Picker id="timeAmount" useSpinner="true">
                <PickerColumn id="hours" width="50%">
                  <PickerRow title="0"/>
                  <PickerRow title="1"/>
                  <PickerRow title="2"/>
                  <PickerRow title="3"/>
                  <PickerRow title="4"/>
                </PickerColumn>
                <PickerColumn id="min" width="50%">
                  <PickerRow title=".00"/>
                  <PickerRow title=".25"/>
                  <PickerRow title=".50"/>
                  <PickerRow title=".75"/>
                </PickerColumn>
              </Picker>
            </View>
      	</Window>
      </Alloy>
      

      index.js
      $.index.open();

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                hknoechel Hans Knöchel
                Reporter:
                kellycorn Kelly Corn
                Reviewer:
                Angel Petkov
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Integration