Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

1.5 Continuous Build SearchBar.focus() problem?

On the latest 1.5.0 build, whenever I create a SearchBar and add it to a TableView, then use "SearchBar.focus();", when I test the App the actually search bar goes in focus (Everything goes black), but then the keyboard pops up then quickly pops down.

Is this a bug?

Here is my code, if needed:

        var searchbar = Ti.UI.createSearchBar({ 
            hintText:'Search Episodes...',
            barColor:'#000',
            showCancel:false
        });

        setTimeout(function(){
            searchbar.focus();
        },1);

        var tableview = Titanium.UI.createTableView({
            data:data,
            search:searchbar,
            searchHidden:false,
        });
— asked November 5th 2010 by Colton Arabsky
  • searchbar
0 Comments

0 Answers

The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.