NSString addition for iOS Emoji.
Objective-C Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Classes
Demo
Resources/YIEmoji.bundle
README.md
YIEmoji.podspec

README.md

YIEmoji 1.0.1

NSString addition for iOS5+ Emoji.

Install via CocoaPods

pod 'YIEmoji'

To support iOS4, see tag 0.1 for more info.

Example

NSString* text = @"😄😊😃☺1⃣test2⃣☀☔☁⛄";

NSLog(@"hasEmoji = %d",[text hasEmoji]); // YES
NSLog(@"trueLength = %d",[text emojiContainedTrueLength]); // 14
NSLog(@"emojiTrimmedString = %@",[text stringByTrimmingEmojis]); // test

TODO

  • Add unit test
  • Add OSX compatibility

Acknowledgement

License

YIEmoji is available under the Beerware license.

If we meet some day, and you think this stuff is worth it, you can buy me a beer in return.