Titanium JIRA Archive
Appcelerator Community (AC)

[AC-287] iOS: TableView randomly disappears on app load on SDK 4.1.0

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionCannot Reproduce
Resolution Date2015-11-08T15:05:53.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsdefect, ios
ReporterA Barresi
AssigneeMotiur Rahman
Created2015-08-05T12:56:59.000+0000
Updated2015-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

FileDateSize
001.PNG2015-08-05T12:51:52.000+000025575
002.PNG2015-08-05T12:51:52.000+000021859

Comments

  1. Radamantis Torres-Lechuga 2015-08-12

    [~abarresi@abamis.com] we can not replicate this issue, can you please send us more information that help us to reproduce this? Thanks
  2. Patrick Mounteney 2015-08-21

    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.

JSON Source