Skip to content

dhiraj/TTEmojiFlagString

Repository files navigation

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.

About

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 to.

Resources

License

Stars

Watchers

Forks

Packages

No packages published