Latest 0.1.3
Homepage https://github.com/dhiraj/TTEmojiFlagString
License Apache
Platforms ios 8.3
Authors

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, [email protected]

License

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

Latest podspec

{
    "name": "TTEmojiFlagString",
    "version": "0.1.3",
    "summary": "ObjectiveC category to convert 2 letter ISO 3166-1 alpha-2 country codes to a Unicode Flag Emoji",
    "description": "This little ObjectiveC category turns any given 2 letter ISO 3166-1 alpha-2 country code in an NSString to a Unicode Flag Emoji that can be directly used wherever you want.",
    "homepage": "https://github.com/dhiraj/TTEmojiFlagString",
    "screenshots": "https://cloud.githubusercontent.com/assets/43901/16782397/fcdd06ac-489c-11e6-91cf-c0522a2107bd.png",
    "license": {
        "type": "Apache",
        "file": "LICENSE"
    },
    "authors": {
        "Dhiraj Gupta": "[email protected]"
    },
    "source": {
        "git": "https://github.com/dhiraj/TTEmojiFlagString.git",
        "tag": "0.1.3"
    },
    "social_media_url": "https://twitter.com/dhiraj",
    "platforms": {
        "ios": "8.3"
    },
    "source_files": "TTEmojiFlagString/Classes/**/*",
    "public_header_files": "TTEmojiFlagString/Classes/**/*.h"
}

Pin It on Pinterest

Share This