Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-19623

iOS: label elements in the rows of a tableview disappear after using searchbar twice

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: iOS
    • Environment:

      Titanium SDK version: 3.5.1 GA
      Platform & version: & iOS 8.2
      Device Details: iPhone 5 and 5S and simulator
      Host Operating System: OS X 10.9 & OS X 10.10
      Titanium Studio version: 3.4.1.201410281727

      Description

      Problem description#

      The label elements in the rows of a tableview disappear after using searchbar twice.

      Steps to reproduce

      1. Start app
      2. Tap the searchbar and enter "row"
      3. Tap on the first row of the search result
      4. Tab on the "OK" button of the alert box
      5. tab on the searchbar again

      All label elements disappeared

      Test case

      app.js

      (function() {
      	Ti.UI.backgroundColor = 'white';
      	
      	var win, view, table, data, row, lbl, search, i, j;
      	
      	win = Ti.UI.createWindow({backgroundColor:'#ffffff'});
      	view = Titanium.UI.createView({backgroundColor:"#FFFEEE",top:0});
      	search = Titanium.UI.createSearchBar();
      	
      	data  = [];
      	for(i=0,j=10; i<j; i++){
      	  row = Ti.UI.createTableViewRow({color:'transparent',title:"Test Row "+i});
      	  lbl = Ti.UI.createLabel({text:"Test Row"+i});
       
      	  row.add(lbl);
      	  data.push(row);
      	}
      		
      	table = Ti.UI.createTableView({search:search,data:data});
      	
      	table.addEventListener('click', function(evt){alert('clicked');});
       
      	view.add(table);
      	win.add(view);
       
      	var navWin1 = Titanium.UI.iOS.createNavigationWindow({window: win});
      	navWin1.open();
      })();	
      

        Attachments

          Activity

            People

            • Assignee:
              ssombhatla Srikanth Sombhatla (Inactive)
              Reporter:
              Esche Markus Eschenbach
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-20426
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration