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

iOS: Make RefreshControl on ScrollView available on iOS < 10

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Low
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Release 7.5.0
    • Component/s: iOS
    • Labels:
      None
    • Story Points:
      0
    • Sprint:
      2016 Sprint 17 SDK

      Description

      Currently, we only support the refreshControl property on the Ti.UI.ScrollView for iOS 10+. We can support it for earlier versions as well:

      var win = Ti.UI.createWindow({
          backgroundColor: '#fff'
      });
       
      var nav = Ti.UI.iOS.createNavigationWindow({
          window: win
      });
       
      var refreshControl =  Ti.UI.createRefreshControl();
       
      refreshControl.addEventListener('refreshstart', function () {
          setTimeout(function () {
              refreshControl.endRefreshing();
          }, 2000);
      });
       
      var scrollView = Ti.UI.createScrollView({
          refreshControl: refreshControl,
          layout: 'vertical'
      });
       
      scrollView.add([
          Ti.UI.createView({ top: 30, width: 300, height: 100, backgroundColor: 'red'}),
          Ti.UI.createView({ top: 30, width: 300, height: 100, backgroundColor: 'red'}),
          Ti.UI.createView({ top: 30, width: 300, height: 100, backgroundColor: 'red'}),
          Ti.UI.createView({ top: 30, width: 300, height: 100, backgroundColor: 'red'}),
          Ti.UI.createView({ top: 30, width: 300, height: 100, backgroundColor: 'red'}),
          Ti.UI.createView({ top: 30, width: 300, height: 100, backgroundColor: 'red'}),
          Ti.UI.createView({ top: 30, width: 300, height: 100, backgroundColor: 'red'}),
          Ti.UI.createView({ top: 30, width: 300, height: 100, backgroundColor: 'red'}),
          Ti.UI.createView({ top: 30, width: 300, height: 100, backgroundColor: 'red'}),
          Ti.UI.createView({ height: 30 }),
      ])
       
      win.add(scrollView);
      nav.open();
      

        Attachments

          Activity

            People

            • Assignee:
              hknoechel Hans Knöchel
              Reporter:
              hknoechel Hans Knöchel
              Reviewer:
              Vijay Singh
              Tester:
              Samir Mohammed
            • Watchers:
              2 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