From 3e8437ae559487362fae3525beb79c534c213a51 Mon Sep 17 00:00:00 2001
From: 单军华
Date: Thu, 12 Jul 2018 13:44:34 +0800
Subject: [PATCH] bug修复和功能优化

---
 screendisplay/Pods/HMEmoticon/表情键盘/Emoticon/HMEmoticonTipView.m |   56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 56 insertions(+), 0 deletions(-)

diff --git "a/screendisplay/Pods/HMEmoticon/\350\241\250\346\203\205\351\224\256\347\233\230/Emoticon/HMEmoticonTipView.m" "b/screendisplay/Pods/HMEmoticon/\350\241\250\346\203\205\351\224\256\347\233\230/Emoticon/HMEmoticonTipView.m"
new file mode 100755
index 0000000..8e22f7f
--- /dev/null
+++ "b/screendisplay/Pods/HMEmoticon/\350\241\250\346\203\205\351\224\256\347\233\230/Emoticon/HMEmoticonTipView.m"
@@ -0,0 +1,56 @@
+//
+//  HMEmoticonTipView.m
+//  ������������
+//
+//  Created by ������ on 16/3/5.
+//  Copyright �� 2016��� itcast. All rights reserved.
+//
+
+#import "HMEmoticonTipView.h"
+#import "UIImage+HMEmoticon.h"
+#import "HMEmoticonButton.h"
+
+@implementation HMEmoticonTipView {
+    HMEmoticonButton *_tipButton;
+}
+
+#pragma mark - ������
+- (void)setEmoticon:(HMEmoticon *)emoticon {
+    
+    if (_tipButton.emoticon == emoticon) {
+        return;
+    }
+    
+    _tipButton.emoticon = emoticon;
+    
+    CGPoint center = _tipButton.center;
+    _tipButton.center = CGPointMake(center.x, center.y + 16);
+    [UIView animateWithDuration:0.25
+                          delay:0
+         usingSpringWithDamping:0.4
+          initialSpringVelocity:0
+                        options:UIViewAnimationOptionCurveEaseOut
+                     animations:^{
+                         _tipButton.center = center;
+                     }
+                     completion:nil];
+}
+
+#pragma mark - ������������
+- (instancetype)initWithFrame:(CGRect)frame {
+    self = [super initWithImage:[UIImage hm_imageNamed:@"emoticon_keyboard_magnifier"]];
+    if (self) {
+        // ������������������
+        CGFloat width = 40;
+        CGFloat x = (self.bounds.size.width - width) * 0.5;
+        CGRect rect = CGRectMake(x, 8, width, width);
+        
+        _tipButton = [HMEmoticonButton emoticonButtonWithFrame:rect tag:0];
+        [self addSubview:_tipButton];
+        // ���������������������TipView��������� ������������������������������
+        self.layer.anchorPoint = CGPointMake(0.5, 0.8);
+    }
+    return self;
+}
+
+@end

--
Gitblit v1.8.0