Titanium JIRA Archive
Alloy (ALOY)

[ALOY-1519] Alloy: Support iOS 10 <RefreshControl> tag in Ti.UI.ScrollView

GitHub Issuen/a
TypeImprovement
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2016-10-03T18:40:40.000+0000
Affected Version/sn/a
Fix Version/sRelease 6.0.0, alloy 1.9.3
ComponentsXML
Labelsios10, qe-6.0.0, refresh, scrollview
ReporterHans Knöchel
AssigneeFeon Sua Xin Miao
Created2016-09-13T11:17:09.000+0000
Updated2017-08-28T22:26:49.000+0000

Description

We introduced the Ti.UI.RefreshControl usage in the Ti.UI.ScrollView in TIMOB-23524. It is a new iOS 10 feature we exposed to the proxy. Now we need the Alloy parser-binding to use it in the XML like we already can do with the Ti.UI.TableView and Ti.UI.ListView.

Comments

  1. Feon Sua Xin Miao 2016-09-22

    PR: https://github.com/appcelerator/alloy/pull/799
  2. Hans Knöchel 2016-09-24

    PR merged, thx! Please leave a note when the new Alloy build is ready for QE-testing. Thx!
  3. Harry Bryant 2016-09-29

    Using the following test code (grabbed from the PR), the RefreshControl does not appear to work on iOS10 / 9 Simulators and Devices: *index.js*
       function doRefresh(e) {
        	alert('refreshed');
        }
        $.index.open();
       
    *index.tss*
       '#index': {
       	backgroundColor: '#fff',
        	fullscreen: false,
        	exitOnClose: true
        }
       
    *index.xml*
       <Alloy>
        	<Window>
       		<ScrollView>
        			<RefreshControl tintColor='red' onRefreshstart='doRefresh' />
        			<Label>Hello</Label>
       		</ScrollView>
        	</Window>
        </Alloy>
       
    Verified that refreshControl works correctly in a classic mobile application. Tested On: iPhone 6 Plus 10.0.2 Device & Simulator iPhone 5S 9.3.5 Device & Simulator Mac OSX El Capitan 10.11.6 Ti SDK: 6.0.0.v20160929031439 Alloy: 1.9.2 Appc Studio: 4.8.0.201609232005 Appc NPM: 4.2.8-7 App CLI: 6.0.0-54 Xcode 8.0 Node v4.4.7 *Reopening Ticket.*
  4. Feon Sua Xin Miao 2016-10-03

    Changes are in alloy@1.9.3. Please test with appc@6.0.0-56.
  5. Hans Knöchel 2016-10-03

    So the problem was that it was not bumped? :-)
  6. Feon Sua Xin Miao 2016-10-03

    Ja, das stimmt. :)
  7. Harry Bryant 2016-10-05

    Verified as fixed, with 6.0.0-56 RefreshControl is now supported for alloy on iOS10. Tested On: iPhone 6 Plus 10.0.2 Device & Simulator Mac OSX El Capitan 10.11.6 Ti SDK: 6.0.0.v20161004202820 Appc Studio: 4.8.0.201609292239 Appc NPM: 4.2.8-7 App CLI: 6.0.0-56 Xcode 8.0 Node v4.4.7 *Closing ticket.*

JSON Source