Update README.md

This commit is contained in:
isaced 2014-12-25 17:37:38 +08:00
parent 631fdbd85f
commit 4690415833
2 changed files with 36 additions and 0 deletions

View File

@ -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

BIN
screenshot.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB