Problem
ActivityIndicator need to be added to the tableview row. Using the sequence hide() and show() makes the indicator to disappear.
Regression - work correctly with 1.7.5
Reproducible Steps
1. Run the sample code and wait
Sample Code
var win = Ti.UI.createWindow();
win.open();
var row = Ti.UI.createTableViewRow({
header: 'Test',
title: 'Testing',
color: '#808080',
selectionStyle: 'none',
hasChild: false
});
var spinner = Ti.UI.createActivityIndicator({
right: 15,
height: 50,
width: 10,
style: Ti.UI.iPhone.ActivityIndicatorStyle.DARK
});
spinner.show();
row.add(spinner);
var tableviewData = [row];
var tableview = Ti.UI.createTableView({
data: tableviewData
});
win.add(tableview);
setTimeout(function() {
spinner.hide();
Ti.API.info('Spinner disappears...');
setTimeout(function() {
spinner.show();
Ti.API.info('And won\'t come back!');
}, 1000);
}, 3000);
Associated HelpDesk Ticket
http://appc.me/c/APP-336112
Git bisect (correctly) identifies the bad commit as
d9e18a0b7fdfe13d98c6ea56c48e1810d494ee41
. That's from way back in the 1.7.0-1.7.3 timeline, so not sure why it was tagged as working with 1.7.5.Tested on Ti Studio 1.0.7.201112061404 Ti Mob SDK 1.8.0.1.v20111207091653 OSX Lion iPhone 4S OS 5.0.1 Expected behavior of activity indicator disappearing then reappearing is shown
The behaviour of this doesn't appear to have changed.
This is fixed in 1.8.0.1, not in 1.7.
I am still seeing this problem in the latest builds. The spinner appears once, then disappears after the table view data has been reset.
Reopened to edit tags