CocoaPods trunk is moving to be read-only. Read more on the blog, there are 2 months to go.
| TestsTested | ✗ |
| LangLanguage | Obj-CObjective C |
| License | MIT |
| ReleasedLast Release | Aug 2015 |
Maintained by Jerry Wong.
A small library to display resolution-independent, intelligently-scaled transit icons.
To run the example project, clone the repo, and run pod install from the Example directory first.
$ git clone https://github.com/UrbanCompass/UCTransitWidgets.git
$ cd Example
$ pod installTo display a transit icon, create a UCTransitLine, and then use it to create a UCTransitIconView. For example, to display an icon for the NYC subway 6 Express line:
UCTransitLine *line = [[UCTransitLine alloc] initWithSystem:UCTransitSystemNYCSubway line:@"6X"];
UCTransitIconView *iconView = [[UCTransitIconView alloc] initWithLine:line];Note that UCTransitIconView may display a different line after instantiation:
[iconView setLine:[[UCTransitLine alloc] initWithSystem:UCTransitSystemNYCSubway line:@"A"]];Cocoapods is required to install dependencies for this project.
$ sudo gem install cocoapodsJerry Wong, [email protected]
James Paolantonio, [email protected]
UCTransitWidgets is available under the MIT license. See the LICENSE file for more info.