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

iOS10: Initial refreshStart does not display the refresh icon

    Details

    • Type: Bug
    • Status: Open
    • Priority: Medium
    • Resolution: Unresolved
    • Affects Version/s: Release 6.0.0
    • Fix Version/s: None
    • Component/s: None
    • Environment:

      Description

      When testing https://jira.appcelerator.org/browse/TIMOB-16218 it was found that when initially launching the demo code on iOS10, refreshStart is invoked and whilst functionally works as expected, the refresh indicator icon is not visible.

      refresh indicator is visible on iOS9 & iOS8.
      refresh indicator is visible on subsequent refreshes on iOS10.

      TEST CODE:

      var win = Ti.UI.createWindow();
      var counter = 0;
      function genData() {
          var data = [];
          var i = 1;
          for ( i = 1; i <= 3; i++) {
              data.push({
                  properties : {
                      title : 'ROW ' + (counter + i)
                  }
              });
          }
          counter += 3;
          return data;
      }
       
      var section = Ti.UI.createListSection();
      section.setItems(genData());
      var control = Ti.UI.createRefreshControl({
          tintColor : 'red'
      });
       
       
      var listView = Ti.UI.createListView({
          sections : [section],
          refreshControl : control
      });
       
      control.addEventListener('refreshstart', function(e) {
          Ti.API.info('refreshstart');
          setTimeout(function() {
              Ti.API.debug('Timeout');
              section.appendItems(genData());
              control.endRefreshing();
          }, 2000);
      });
       
      win.add(listView);
      win.open();
       
      control.beginRefreshing(); //It does not do anything when being called
      

      Steps to Reproduce

      1. Create a classic mobile application.
      2. Apply test code to app.js file.
      3. Run app on iOS10 Device / Simulator.
      4. Launch the app. (Don't refresh manually)

      Expected Result

      refresh indicator icon should be visible on initial refresh on iOS10.

      Actual Result

      ListView is refreshed without the indicator icon visible on iOS10.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                htbryant Harry Bryant
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Backbone Issue Sync

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

                    Git Integration