Skip to content

Instantly share code, notes, and snippets.

View redteam-snippets's full-sized avatar

redteam-snippets

View GitHub Profile
@redteam-snippets
redteam-snippets / InfiniteScrollingTableView.js
Created October 12, 2012 14:28 — forked from dawsontoth/InfiniteScrollingTableView.js
Infinite loading table view for iOS and Android.
/**
* We're going to create an infinite loading table view. Whenever you get close to the bottom, we'll load more rows.
*/
var win = Ti.UI.createWindow({ backgroundColor: '#fff' });
var isAndroid = Ti.Platform.osname === 'android';
/**
* Create our UI elements.
*/
var table = Ti.UI.createTableView({ top: 0, right: 0, bottom: 0, left: 0 });