Go to file
isaced a70d786323 demo project update to xcode7 2015-11-06 10:52:51 +08:00
Example demo project update to xcode7 2015-11-06 10:52:51 +08:00
ISEmojiView Add a simple pop animation 2015-06-16 17:02:36 +08: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 Add some shields icon to README 2015-06-11 13:53:26 +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] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, 216)];
emojiView.delegate = self;
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];
    }
}

##License

MIT