Go to file
ReadmeCritic 7988516b1b Correct the spelling of CocoaPods in README 2016-02-12 10:19:57 -08:00
Example simple project textview add autoresizingMask 2015-12-14 15:34:38 +08:00
ISEmojiView simple fix scrren rotation 2015-11-06 12:07:01 +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 Correct the spelling of CocoaPods in README 2016-02-12 10:19:57 -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