The following code works with Titanium 3.1.3.GA and Alloy 1.2.2 on iOS simulator 7.0.3.
GIST: https://gist.github.com/iantearle/8157754
With XML:
<Alloy> <Window id="home" platform="ios" formFactor="handheld"> <View class="container"> <View class="header"> <ImageView id="imageView" image="/images/logo.png" /> </View> <View id="searchBar" class="searchBar"> <Widget id="searchIcon" class="searchIcon" icon="search" src="be.k0suke.ssgizmo"/> <TextField id="searchField" class="searchField" borderStyle="Ti.UI.INPUT_BORDERSTYLE_NONE" top="2" left="30" height="40" /> <Label id="searchCancel" class="searchCancel">Cancel</Label> </View> <TableView id="content" dataCollection="properties"> <Require src="property.row" /> <Widget id="is" src="nl.fokkezb.infiniteScroll" onEnd="myLoader" /> </TableView> <View id="test" /> </View> </Window> <SplitWindow id="splitview" showMasterInPortrait="true" platform="ios" formFactor="tablet"> <Window id="home"> <View class="container"> <View class="header"> <ImageView id="imageView" image="/images/logo.png" /> </View> <View id="searchBar" class="searchBar"> <Widget id="searchIcon" class="searchIcon" icon="search" src="be.k0suke.ssgizmo"/> <TextField id="searchField" class="searchField" borderStyle="Ti.UI.INPUT_BORDERSTYLE_NONE" top="2" left="30" height="40" /> <Label id="searchCancel" class="searchCancel">Cancel</Label> </View> <TableView id="content" dataCollection="properties"> <Require src="property.row" /> <Widget id="is" src="nl.fokkezb.infiniteScroll" onEnd="myLoader" /> </TableView> <View id="test" /> </View> </Window> <Window> <View id="test" /> <View id="contentMapView" ns="Ti.Map" mapType="Ti.Map.STANDARD_TYPE" /> <View class="header"> <Widget id="favoriteIconNav" class="favoriteIcon" icon="favorite" src="be.k0suke.ssgizmo"/> </View> </Window> </SplitWindow> </Alloy>Ignore iPad/Android specific stuff for the time being, I am only debugging iPhone - as this is not working when I update both Titanium and Allloy to the latest releases.
I appear to get the correct amount of results, the length Ti.App.info() tells me, but no results are presented in the tableview. I thought this may be to do with Fokke's Infinite scrolling widget, but even removing this results in the same thing happening, the app appears to fetch the correct results but fails to populate the tableview.