Skip to content

App Crash using Alloy TableView when .add SwipeRefresh to main window #5

@n2bSolutions

Description

@n2bSolutions

Hello,

When i try to $.tableWrapper.add(swipeRefresh) application crash !!

The View :

<View id="tableWrapper">
            <TableView id="container" filterAttribute="indice">
                <RefreshControl platform="ios" id="ptr" tintColor="black" onRefreshstart="ptrRelease"/>
                <SearchBar id="barraDeBusqueda" platform="ios,android"></SearchBar>                 
            </TableView>
</View>
</code>

The Controller:

if(Ti.Platform.name == "android") {
    var swipeRefreshModule = require('com.rkam.swiperefreshlayout');
    var swipeRefresh = swipeRefreshModule.createSwipeRefresh({
        view: $.container, // el id de la tableView
        height: Ti.UI.FILL,
        width: Ti.UI.FILL
    });

    //$.scroll.add(swipeRefresh);
    $.tableWrapper.add(swipeRefresh); ---> Crash the App :-/
}

Appcelerator 3.3.0 Alloy 1.4.0 ...

Any Ideas?

Thxs a lots!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions