imsdk-ios icon indicating copy to clipboard operation
imsdk-ios copied to clipboard

编译源码发现libqimcommon的QIMFileManager中找不到依赖QIMImageManager

Open wittech opened this issue 6 years ago • 0 comments

编译源码发现libqimcommon的QIMFileManager中找不到依赖QIMImageManager:

/** 上传图片成功之后会,发送图片消息 @param localImageKey 图片key @param message 要发送的消息Model */

  • (void)qim_uploadImageWithImageKey:(NSString *)localImageKey forMessage:(QIMMessageModel *)message {

    if (localImageKey.length > 0 && [[NSFileManager defaultManager] fileExistsAtPath:localImageKey]) { //兼容以前传进来全路径的问题 [self qim_uploadImageWithImagePath:localImageKey forMessage:message]; } else { //新版本使用半路径 NSString *localImagePath = [[QIMImageManager sharedInstance] defaultCachePathForKey:localImageKey]; [self qim_uploadImageWithImagePath:localImagePath forMessage:message]; } }

wittech avatar Mar 04 '20 13:03 wittech