Skip to content

Latest commit

 

History

History
42 lines (27 loc) · 1.32 KB

README.md

File metadata and controls

42 lines (27 loc) · 1.32 KB

TTEmojiFlagString

Version License Platform

This little ObjectiveC category turns any given country code in an NSString to a Unicode Flag Emoji that can be directly used wherever you want.

Example:

NSString * strIndia = @"IN";
NSLog(@"India's flag:%@",[NSLocale emojiFlagForISOCountryCode:strIndia]);

//Outputs:
India's flag: 🇮🇳

Attribution

This category is essentially a copy-paste reproduction of this Stack Overflow answer.

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

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

pod "TTEmojiFlagString"

Author

Dhiraj Gupta, dhiraj@traversient.com

License

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