Add example code

This commit is contained in:
isaced 2014-12-25 16:32:20 +08:00
parent cd800dae9e
commit 803ce517f8
1 changed files with 11 additions and 2 deletions

View File

@ -7,6 +7,7 @@
//
#import "ViewController.h"
#import "ISEmojiView.h"
@interface ViewController ()
@ -16,12 +17,20 @@
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
// init TextView
UITextView *textView = [[UITextView alloc] initWithFrame:self.view.frame];
[self.view addSubview:textView];
// init ISEmojiView
ISEmojiView *emojiView = [[ISEmojiView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, 216)];
textView.inputView = emojiView;
[textView becomeFirstResponder];
}
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
@end