Update README.md
This commit is contained in:
parent
631fdbd85f
commit
4690415833
36
README.md
36
README.md
|
|
@ -2,3 +2,39 @@ ISEmojiView
|
|||
===========
|
||||
|
||||
Emoji Keyboard for iOS
|
||||
|
||||

|
||||
|
||||
##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
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 51 KiB |
Loading…
Reference in New Issue