path = { R : Titanium.Filesystem.resourcesDirectory, A : Titanium.Filesystem.applicationDirectory, T : Titanium.Filesystem.tempDirectory, AP : Titanium.Filesystem.applicationDataDirectory }; function createSearchBar(left, top, width, height) { var search_bar = Ti.UI.createSearchBar({ showCancel : false, height : height, top : top, left : left, width : width, backgroundImage : path.R + "images/town/search/search-box-background.png", value : '' }); return search_bar; } function listingTable(top) { var table = Ti.UI.createTableView({ top : top, separatorColor : 'white', backgroundColor : 'white' }); return table; } function createSearchBack(left, top, width, height) { var search_back = Ti.UI.createLabel({ left : left, height : height, width : width, top : top, backgroundImage : path.R + "images/town/search/search-box-background.png" }); return search_back; } //FirstView Component Constructor function FirstView() { //create object instance, a parasitic subclass of Observable var self = Ti.UI.createView(); //label using localization-ready strings from <app dir>/i18n/en/strings.xml var searchbar = createSearchBar(0,0,'100%',35); var search_back = createSearchBack(0,0,320,35); var business_table = listingTable(35); self.add(search_back); self.add(searchbar); self.add(business_table); return self; } module.exports = FirstView;I have this test code I wrote, and the keyboard always shows. How can I get it not ever to the keyboard, and I don't want it to show as the app starts, as this looks bad for the user. Just need to show keyboard if they tap the search field.
Note: This only seems to happen when I add the 'business_table'.
Your Answer
Think you can help? Login to answer this question!