Go to file
Marina Puzyreva 189ae68387 Emoji background has been slightly changed. Backspace has been put down a bit. 2016-07-27 10:08:58 +04:00
Example Update init method 2016-04-07 12:00:39 +08:00
ISEmojiView Emoji background has been slightly changed. Backspace has been put down a bit. 2016-07-27 10:08:58 +04:00
.gitignore Initial commit 2014-12-25 14:42:40 +08:00
ISEmojiView.podspec update podspec 2015-06-02 10:10:46 +08:00
LICENSE update LICENSE 2015-06-02 10:59:13 +08:00
README.md Update README.md 2016-04-07 12:03:33 +08:00
screenshot.jpg Update screenshot 2014-12-30 17:29:00 +08:00

README.md

ISEmojiView CocoaPods Platform GitHub license

An easy to use Emoji keyboard for iOS.

screenshot

Install

CocoaPods

pod 'ISEmojiView'

Useage

Init

// init ISEmojiView
ISEmojiView *emojiView = [[ISEmojiView alloc] initWithTextField:textView delegate:self];
textView.inputView = emojiView;

Response

add protocol ISEmojiViewDelegate and implementation emojiView:didSelectEmoji: method

-(void)emojiView:(ISEmojiView *)emojiView didSelectEmoji:(NSString *)emoji{
    self.textView.text = [self.textView.text stringByAppendingString:emoji];
}

and emojiView:didPressDeleteButton: method:

-(void)emojiView:(ISEmojiView *)emojiView didPressDeleteButton:(UIButton *)deletebutton{
    if (self.textView.text.length > 0) {
        NSRange lastRange = [self.textView.text rangeOfComposedCharacterSequenceAtIndex:self.textView.text.length-1];
        self.textView.text = [self.textView.text substringToIndex:lastRange.location];
    }
}

Other

  • popAnimationEnable to enable animation when tap a emoji

License

MIT