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

iOS: Top section in grouped ListView disappears when tapping SearchBar or on orientation change

    Details

    • Story Points:
      5

      Description

      Since the ListView search bar was moved to the UISearchController, there is a bug that makes the layout of the list section "collapse". This is quite critical for us, because it destroys our layout.

      To debug: The following log is displayed in the console, indicating the underlaying issue:

      [DEBUG] Presenting view controllers on detached view controllers is discouraged <TiViewController: 0x7fa06f532c40>.
      

      Probably also reproducible in common sample apps and test suites that include a list view + search. Sample code to reproduce:

      var win = Ti.UI.createWindow({
          backgroundColor: '#fff'
      });
       
      var listView = Ti.UI.createListView({ style: Ti.UI.iOS.ListViewStyle.GROUPED });
      listView.sections = [Ti.UI.createListSection({ items: [{ properties: { itemId: 1, height: 43, title: 'Test item 1' } }, { properties: { itemId: 2, height: 43, title: 'Test item 2' } }] })];
      listView.searchView = Ti.UI.createSearchBar();
       
      win.add(listView);
      win.open();
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jquick Joshua Quick
                Reporter:
                hknoechel Hans Knöchel
                Reviewer:
                Jan Vennemann
              • Watchers:
                10 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 Integration