Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sgwilym/tableviewiconindex
A custom TableView index that supports custom icons, written in Swift
https://github.com/sgwilym/tableviewiconindex
Last synced: 26 days ago
JSON representation
A custom TableView index that supports custom icons, written in Swift
- Host: GitHub
- URL: https://github.com/sgwilym/tableviewiconindex
- Owner: sgwilym
- Created: 2014-06-05T10:59:39.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-06-06T10:30:08.000Z (over 10 years ago)
- Last Synced: 2024-05-02T05:09:25.468Z (7 months ago)
- Language: Swift
- Size: 125 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# TableViewIconIndex
A Swift version of [GWTableIndex](https://github.com/sgwilym/GWTableIndex)
It's easy enough to give your UITableView a navigation index like the one found in iOS' Contacts app, but if you'd like a little more customisation — like custom icons instead of initials, for example — you're out of luck. What to do?!
TableViewIconIndex helps you make a UITableView Index where:
- Each navigation item can be represented with an initial or 15x15pt icon
- Each navigation item can be sorted into seperate groups
- Each group can be given a decorative 15x15pt icon as a headerHave your UITableView's datasource implement TableViewIndexDataSource and TableViewIndexDelegate protocol methods, and you're good to go.
Note: at the moment TableViewIconIndexItem’s initial property is of type ‘’String’’ rather than the preferable ‘’Character’’ as it’s the only way I could get the still-slightly-erratic Xcode6-beta to compile the Objective-C headers properly.