Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-3003] iOS: Problems with Grouped TableView

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionDuplicate
Resolution Date2013-11-10T07:12:18.000+0000
Affected Version/sRelease 1.6.0, Release 3.0.0
Fix Version/sn/a
ComponentsiOS
Labelscore
Reporteralbertomarcone
AssigneeIngo Muschenetz
Created2011-04-15T03:34:28.000+0000
Updated2017-03-09T21:30:32.000+0000

Description

if I open a window with inside a tableview with transparent background, will be fine the first time I open that window, but then if I open it again I will see an empty tableview in the background.

Project type iPad
iOS SDK 4.2
Titanium SDK 1.6.0
Titanium Developer 1.2.2

Attachments

FileDateSize
resources.zip2011-04-15T03:34:28.000+0000276937
tableviewbug.png2011-04-15T03:34:28.000+000047574

Comments

  1. albertomarcone 2011-04-15

    I really need help with this, my app keep creating overlapping tableviews for no reasons

  2. Adriano Paladini 2011-04-15

    Hi alberto, can you publish your code?

  3. albertomarcone 2011-04-15

    I've attached an example project, I thought it would've been the easiest way since my code is on 3 different files.

    Just try to click on the button on the first page and then on the log out button from the second page. If you repeat this back and forth you'll see something weird, another empty tableview in the background (as in the screenshot from my original ticket).

    I even tried the last 1.6.0 continuous, but didn't make any difference.

  4. Adriano Paladini 2011-04-15

    Hi,

    Your problem is because when you click the close button of the page2.js "win.close ();" will destroy the objects.
    When you open again in the button on the page1.js "Titanium.UI.currentTab.open(WIN2 {animated: true});" is opening a screen residual properties and without this there is no bottom viewer.

    to correct, change your page1.js to:

       
       var win = Ti.UI.currentWindow;
       
       var button = Ti.UI.createButton({width:100, height:50, title:'button'});
       win.add(button);
       
       button.addEventListener("click", function(){
       
           var win2 = Titanium.UI.createWindow({  
               url:'page2.js',
               title:'Tab 2',
               backgroundColor:'#fff',
               backgroundImage:'bgIndex.png'
           });
       
           Titanium.UI.currentTab.open(win2,{animated:true});
       });
       

    To create a new window before open.

  5. albertomarcone 2011-04-15

    I still think it's a bug, since I'll waste resources in recreating the window every time I click the button.

    Thank you anyway for your quick reply, at least I know how to fix it for now.

  6. Stephen Tramer 2011-04-15

    Should maybe invalidate because there's a workaround and memory teardown is required?

  7. Stephen Tramer 2012-07-26

    Confirmed SDK 2.2.0.014b86f. Color must have an incorrect lifecycle.
  8. Lee Morris 2017-03-09

    Closing ticket as duplicate.

JSON Source