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

iOS 7: ListView - SearchBar disappears on device rotation if there are no text in the SearchBar

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: Release 3.2.2, Release 3.2.3
    • Fix Version/s: Release 3.4.0
    • Component/s: iOS
    • Environment:

      Appcelerator Studio, build: 3.2.3.201403271839
      SDK build: 3.2.2.GA, 3.2.3.v20140403105720
      CLI: 3.2.3-alpha2
      Alloy: 1.3.1
      Xcode: 5.1
      Devices: iphone 5s (7.0), iphone 4 (7.1), ipad air (7.1)

      Description

      Details: If you add a SearchBar to a ListView, scroll up on the list until SearchBar (no text) is not visible, rotate device, then the SearchBar will disappear if you scroll back to the top.

      Note:
      1. This is not a regression as this occurs in both SDK 3.2.2.GA and 3.2.3.
      2. This does not occur with iOS 6 devices.
      3. SearchBar will re-appear if you rotate the device again.
      4. If SearchBar disappears and you press on the empty area (see empty.png), then the SearchBar will re-appear again and persists regardless how many times you rotate the device afterwards.

      Steps to reproduce:
      1. Create a default Classic app with the app.js attachment and include these orientation in tiapp.xml:

      <key>UISupportedInterfaceOrientations~iphone</key>
      <array>
          <string>UIInterfaceOrientationPortrait</string>
          <string>UIInterfaceOrientationPortraitUpsideDown</string>
          <string>UIInterfaceOrientationLandscapeLeft</string>
          <string>UIInterfaceOrientationLandscapeRight</string>
      </array>
      <key>UISupportedInterfaceOrientations~ipad</key>
      <array>
          <string>UIInterfaceOrientationPortrait</string>
          <string>UIInterfaceOrientationPortraitUpsideDown</string>
          <string>UIInterfaceOrientationLandscapeLeft</string>
          <string>UIInterfaceOrientationLandscapeRight</string>
      </array>
      

      2. Launch app onto device
      3. Press on List w/ Search tab
      4. Scroll up on ListView until SearchBar is not visible
      5. Rotate device in any direction
      6. Scroll down on ListView until you're at the top

      Actual: SearchBar is missing (see empty.png).
      Expected: SearchBar should not disappear (see expected.png).

        Attachments

        1. app.js
          4 kB
        2. empty.png
          empty.png
          62 kB
        3. expected.png
          expected.png
          68 kB

          Issue Links

            Activity

              People

              • Assignee:
                ingo Ingo Muschenetz
                Reporter:
                wluu Wilson Luu (Inactive)
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Integration