Magnifying Glass Image for TableView Index?

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

  1. macrumors 68030

    PhoneyDeveloper

    Joined:
    Sep 2, 2008
    #1
    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?
     
  2. macrumors newbie

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

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

    Joined:
    Sep 3, 2008
    #4
    is it Aplle "Leagal" to use this?

    or is it some private API?
     
  5. macrumors 6502

    Joined:
    Oct 31, 2007
    Location:
    San José
    #5
    UIKIT_EXTERN NSString *const UITableViewIndexSearch __OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_3_0);
     

Share This Page