From 7b02207537d35bfa1714bf8beafc921f717d100a Mon Sep 17 00:00:00 2001 From: 单军华 Date: Wed, 11 Jul 2018 10:47:42 +0800 Subject: [PATCH] 首次上传 --- screendisplay/Pods/HMEmoticon/表情键盘/Emoticon/UIImage+HMEmoticon.m | 28 ++++++++++++++++++++++++++++ 1 files changed, 28 insertions(+), 0 deletions(-) diff --git "a/screendisplay/Pods/HMEmoticon/\350\241\250\346\203\205\351\224\256\347\233\230/Emoticon/UIImage+HMEmoticon.m" "b/screendisplay/Pods/HMEmoticon/\350\241\250\346\203\205\351\224\256\347\233\230/Emoticon/UIImage+HMEmoticon.m" new file mode 100755 index 0000000..b30a401 --- /dev/null +++ "b/screendisplay/Pods/HMEmoticon/\350\241\250\346\203\205\351\224\256\347\233\230/Emoticon/UIImage+HMEmoticon.m" @@ -0,0 +1,28 @@ +// +// UIImage+HMEmoticon.m +// ������������ +// +// Created by ������ on 16/3/3. +// Copyright �� 2016��� itcast. All rights reserved. +// + +#import "UIImage+HMEmoticon.h" +#import "NSBundle+HMEmoticon.h" + +@implementation UIImage (HMEmoticon) + ++ (UIImage *)hm_imageNamed:(NSString *)name { + return [UIImage imageNamed:name + inBundle:[NSBundle hm_emoticonBundle] + compatibleWithTraitCollection:nil]; +} + +- (UIImage *)hm_resizableImage { + return [self resizableImageWithCapInsets: + UIEdgeInsetsMake(self.size.height * 0.5, + self.size.width * 0.5, + self.size.height * 0.5, + self.size.width * 0.5)]; +} + +@end -- Gitblit v1.8.0