diff --git a/README.md b/README.md index 63b101e..1261986 100644 --- a/README.md +++ b/README.md @@ -2,3 +2,39 @@ ISEmojiView =========== Emoji Keyboard for iOS + +![screenshot](https://raw.github.com/isaced/ISEmojiView/master/screenshot.jpg) + +##Useage + +###import + +``` +#import "ISEmojiView.h" +``` + +###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]; +} +``` + +##Author + +isaced@163.com + +##License + +MIT \ No newline at end of file diff --git a/screenshot.jpg b/screenshot.jpg new file mode 100644 index 0000000..cc0d74b Binary files /dev/null and b/screenshot.jpg differ