inputView rename to textField
This commit is contained in:
parent
020b9eba92
commit
f51e61b1bd
|
|
@ -28,7 +28,7 @@
|
|||
// init ISEmojiView
|
||||
ISEmojiView *emojiView = [[ISEmojiView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, 216)];
|
||||
emojiView.delegate = self;
|
||||
emojiView.inputView = self.textView;
|
||||
emojiView.textField = self.textView;
|
||||
self.textView.inputView = emojiView;
|
||||
|
||||
[self.textView becomeFirstResponder];
|
||||
|
|
|
|||
|
|
@ -31,14 +31,14 @@
|
|||
@property (nonatomic, strong) UIPageControl *pageControl;
|
||||
|
||||
/**
|
||||
* the input view
|
||||
* the textField view (eg:TextField,TextView)
|
||||
*/
|
||||
@property (nonatomic, strong) UIView *inputView;
|
||||
@property (nonatomic, strong) UIView *textField;
|
||||
|
||||
/**
|
||||
* Are animation allowed (default:YES)
|
||||
*
|
||||
* require set inputView (eg:TextField,TextView)
|
||||
* require set textField to get point
|
||||
*/
|
||||
@property (nonatomic, assign) BOOL popAnimationEnable;
|
||||
|
||||
|
|
|
|||
|
|
@ -152,8 +152,8 @@ static const CGFloat EmojiFontSize = 32;
|
|||
animationEmojiButton.frame = [button.superview convertRect:button.frame toView:self];
|
||||
[self addSubview:animationEmojiButton];
|
||||
|
||||
// get animation traget position from input view
|
||||
CGPoint newPoint = [self.inputView convertPoint:self.inputView.center toView:self];
|
||||
// get animation traget position from textField view
|
||||
CGPoint newPoint = [self.textField convertPoint:self.textField.center toView:self];
|
||||
[UIView animateWithDuration:0.3 animations:^{
|
||||
animationEmojiButton.center = newPoint;
|
||||
animationEmojiButton.alpha = 0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue