Magnifying Glass Image for TableView Index?

Discussion in 'iOS Programming' started by PhoneyDeveloper, Sep 3, 2008.

  1. PhoneyDeveloper macrumors 68040


    Sep 2, 2008
    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. has a magnifying glass. Anyone know how to do this?
  2. BrianARice macrumors newbie

    Sep 4, 2008
    I asked Apple about this... and they said that this was a feature they have not exposed in the SDK.
  3. davidbk1 macrumors newbie

    Aug 18, 2003
    Washington, DC
    It's been a while but I found the solution. Use @"{search}"
  4. rafiki270 macrumors newbie

    Sep 3, 2008
    is it Aplle "Leagal" to use this?

    or is it some private API?
  5. North Bronson macrumors 6502

    Oct 31, 2007
    San José
    UIKIT_EXTERN NSString *const UITableViewIndexSearch __OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_3_0);

Share This Page