Have you noticed that in the iPod app, for the sectionIndex, the first one is a little “Magnifier”, it’s so cute! But when we are implementing sectionIndexTitlesForTableView: method, we have been told that it need to return a NSArray with NSString inside, so, how to make it as icon? Maybe apple define some special replacement if we offer some particular char, anyone has idea about this?
Have you noticed that in the iPod app, for the sectionIndex , the first
Share
The magnifying glass icon is achieved by making the first entry in your section index title array the value
UITableViewIndexSearch.Then you have to remember that index 0 means the user wants to use the search interface. Put another way, when using
UITableViewIndexSearchin your index titles, you have to remember that your first real index title is at index 1, not 0.You are correct that the section index title array is an array of NSString’s. You cannot provide other images there. (That’d be cool if you could, but there is no mechanism for that at this point.)