PDA

View Full Version : Magnifying Glass Image for TableView Index?




PhoneyDeveloper
Sep 3, 2008, 08:58 AM
How do I add the Magnifying Glass image to an index for a UITableView? I have a table that has a UI very similar to the contacts tableview in the Contacts app. I have a search bar in the first row and an index of the letters A-Z. In the sectionIndexTitlesForTableView: delegate method I return the array of section index titles as required.

Each title needs to be an NSString* and I can't find a unicode character for a magnifying glass. Contacts.app has a magnifying glass. Anyone know how to do this?



BrianARice
Sep 15, 2008, 08:30 PM
I asked Apple about this... and they said that this was a feature they have not exposed in the SDK.

davidbk1
Apr 28, 2009, 01:07 PM
It's been a while but I found the solution. Use @"{search}"

rafiki270
Nov 3, 2011, 09:16 AM
or is it some private API?

North Bronson
Nov 3, 2011, 12:04 PM
UIKIT_EXTERN NSString *const UITableViewIndexSearch __OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_3_0);