How to Get Search Bar in Tableview to Appear When User Taps Search Icon at the top of sectionIndex s

Posted by Gorgando on Stack Overflow See other posts from Stack Overflow or by Gorgando
Published on 2010-06-14T15:49:01Z Indexed on 2010/06/14 15:52 UTC
Read the original article Hit count: 231

I have a tableview with an indexed scrollbar on the right side that shows the letters A-Z and has a magnifying glass icon at the top ({search}). All of the letters in the scrollbar appropriately take the user to the corresponding section except for the magnifying glass, which takes the user to "A" and keeps the searchBar hidden.

I just want it to go to the very top of the table so that the searchBar shows up when the user taps the magnifying glass icon in the scroll bar. I've been looking all over for ways to do this, but I can't find any way shy of adding the searchBar to the first tableCell and it's own section, which I'd prefer not to do unless it's the only way.

Thanks so much!

© Stack Overflow or respective owner

Related posts about iphone

Related posts about cocoa-touch