-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在使用 QMUIEmotion 的时候,能不能只通过displayName 获取到QMUIEmotion 的image? #60
Comments
在我们的项目中,我们通过这种方式获取 image: + (UIImage *)imageForEmotionWithDisplayName:(NSString *)displayName {
for (QMUIEmotion *emotion in [QMUIQQEmotionManager emotionsForQQ]) {
if ([displayName isEqualToString:emotion.displayName]) {
return emotion.image;
}
}
return nil;
} |
恩,我试试看!多谢! |
OK ,果然是内部方法,厉害! |
忘了有一点,MLeaksFinder 检测 QMUITabBarViewController 这个类有内存泄露!不知道准确不,你们可以看看! |
好的多谢,稍后检查一下。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
运行环境
iPhone
/iPad
/模拟器
iOS 10.x
8.x
1.x.x
具体问题描述
@interface QMUIEmotion : NSObject
/// 当前表情的标识符,可用于区分不同表情
@Property(nonatomic, copy) NSString *identifier;
/// 当前表情展示出来的名字,可用于输入框里的占位文字,例如“[委屈]”
@Property(nonatomic, copy) NSString *displayName;
/// 表情对应的图片。若表情图片存放于项目内,则建议用当前表情的
identifier
作为图片名@Property(nonatomic, strong) UIImage *image;
/**
QMUIEmotion
对象,并且以identifier
为图片名在当前项目里查找,作为表情的图片*/
在textView 获取到的时QMUIEmotion 的 displayName,怎么能够根据 displayName 获取到image 呢?
@EnD
问题截图
The text was updated successfully, but these errors were encountered: