Add example code
This commit is contained in:
parent
cd800dae9e
commit
803ce517f8
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue