/TTCountryFlagLabel

Simple UILabel subclass that displays a country emoji flag instead of the provided 2 letter ISO_3166-1_alpha-2 NSString

Primary LanguageObjective-CApache License 2.0Apache-2.0

TTCountryFlagLabel

Version License Platform

Simple UILabel subclass that displays a country emoji flag instead of the provided 2 letter ISO_3166-1_alpha-2 NSString. This is possible because of the Regional Indicator Symbol Unicode standard.

Example

To run the example project, clone the repo, and run pod install from the Example directory first. The included example demo project shows the country flags in a UITableView. These are not images, the flag and the country name are both UILabel objects.

Image of Yaktocat

Requirements

iOS 8.3+ to get most of the countries flags, before this there were only 10 that were available in iOS.

Installation

TTCountryFlagLabel is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "TTCountryFlagLabel"

Author

Dhiraj Gupta, development@traversient.com

License

TTCountryFlagLabel is available under the Apache 2.0 license. See the LICENSE file for more info.