Discussion Forums  >  Uncategorized

Replies: 4    Views: 225

johnnylonz
Aspiring developer
Profile
Posts: 26
Reg: Aug 11, 2011
Florida
260
10/27/11 08:38 AM (14 years ago)

Search results invisible by default

Using BT 1.5 for iOS - I have a search menu for searching all of my screens on the app. When you go to the search menu, it presents you with a search box at the top with a list of all the searchable menus below it. Is it possible to make it so when the search menu first loads, the screen is blank without any of the screens listed and as you begin to type the results will only then begin to populate?
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
10/27/11 02:49 PM (14 years ago)
Try adding this on line 277 of BT_screen_search.m [displayMenuItems removeAllObjects]; Do this right below displayMenuItems = menuItems; It will look like.... displayMenuItems = menuItems; [displayMenuItems removeAllObjects]; Compile, load. Bet it works ;-)
 
johnnylonz
Aspiring developer
Profile
Posts: 26
Reg: Aug 11, 2011
Florida
260
like
10/28/11 07:25 AM (14 years ago)
It hid them alright! But now when you go to do a search nothing shows up, it's completely blank. I was looking at the line below this, which is commented //trigger the search (needed if we have a previously entered value), I'm wondering if something needs to be changed here to trigger the search after typing in the search criteria?
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
10/28/11 09:47 PM (14 years ago)
Rats. And...if you're wondering about the delays in my posts we are stupid busy around here trying to prepare buzztouch Server 2.0 for the Nov 1 release. So, not sure. The idea is that the displayMenItems array is what gets displayed in the list. It's the array that gets filled with everything when the screen loads, then emptied, and re-filled on each search with the items that match. You'll need to figure out where it's not getting filled. I thought it would work this way (got part of it, empty on load) but something's missing. I'll be able to re-visit this if you can't get it figured out but not until after the big day on 11/1
 
johnnylonz
Aspiring developer
Profile
Posts: 26
Reg: Aug 11, 2011
Florida
260
like
10/29/11 08:00 AM (14 years ago)
No worries. We are in the process of putting the final touches on our app and this was more of a nitpicky thing than anything else. Maybe we'll look at it more in our 2.0 version ;) Thanks for all of your help David. You guys are awesome.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.