[AC-287] iOS: TableView randomly disappears on app load on SDK 4.1.0
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Resolved |
Resolution | Cannot Reproduce |
Resolution Date | 2015-11-08T15:05:53.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | defect, ios |
Reporter | A Barresi |
Assignee | Motiur Rahman |
Created | 2015-08-05T12:56:59.000+0000 |
Updated | 2015-11-08T15:05:53.000+0000 |
Description
Start a Mobile App Project using the following sample code. The issue is the tableview will randomly disappear on app load, with no errors thrown in the log. I haven't found a solid way to reproduce this other than just continuously opening and closing the app. The screen shots below took a dozen open/close cycles to have the issue appear (other times it happened on the first load of the app).
*tiapp.xml*
Set the Titanium SDK version to 4.1.0
*index.xml*
<Alloy>
<Window id="homeWindow" backgroundColor="#000000" barColor="#00aeef" tintColor="#00aeef">
</Window>
</Alloy>
*index.js*
var mainWindow = Titanium.UI.iOS.createNavigationWindow({
window: $.homeWindow,
tintColor: '#ffffff'
});
Ti.App.mainWindow = mainWindow;
var table = Ti.UI.createTableView({
data: [],
separatorColor: '#eeeeee',
backgroundColor: '#fafafa',
top: '44dp',
height: Titanium.UI.FILL,
});
$.homeWindow.add(table);
mainWindow.open();
!001.PNG|thumbnail!
!002.PNG|thumbnail!
Attachments
File | Date | Size |
---|---|---|
001.PNG | 2015-08-05T12:51:52.000+0000 | 25575 |
002.PNG | 2015-08-05T12:51:52.000+0000 | 21859 |
[~abarresi@abamis.com] we can not replicate this issue, can you please send us more information that help us to reproduce this? Thanks
I was getting this a lot using a ListView with a custom template where on the first app launch it populated as expected but on subsequent - but not all - launches the ListView was completely empty. No errors thrown. This seems to have fixed it https://github.com/appcelerator/titanium_mobile/pull/6984 which I pasted into TiProxy.m and recompiled.