ios 手动导入接入网易云信UI遇到的坑,和解决办法

Grace ·
更新时间:2024-11-14
· 553 次阅读

需要第三方依赖 下面几个下载下来拷贝文件夹就能用(删掉文件夹里的plist和其他无关文件) Toast v3.0 SVProgressHUD v2.0.3 M80AttributedLabel v1.6.3 TZImagePickerController v1.9.0 SDWebImage比较特殊

需要先拷贝WebImage和SDWebImage文件夹进项目

SDWebImage v4.0.0
然后打开NIMKit文件见,手动替换引入文件方式 #import "SDWebImageManager.h" #import "SDWebImageCacheKeyFilter.h" #import "SDWebImageCacheSerializer.h" #import "SDImageCacheConfig.h" #import "SDImageCache.h" #import "SDMemoryCache.h" #import "SDDiskCache.h" #import "SDImageCacheDefine.h" #import "SDImageCachesManager.h" #import "UIView+WebCache.h" #import "UIImageView+WebCache.h" #import "UIImageView+HighlightedWebCache.h" #import "SDWebImageDownloaderConfig.h" #import "SDWebImageDownloaderOperation.h" #import "SDWebImageDownloaderRequestModifier.h" #import "SDWebImageDownloaderResponseModifier.h" #import "SDWebImageDownloaderDecryptor.h" #import "SDImageLoader.h" #import "SDImageLoadersManager.h" #import "UIButton+WebCache.h" #import "SDWebImagePrefetcher.h" #import "UIView+WebCacheOperation.h" #import "UIImage+Metadata.h" #import "UIImage+MultiFormat.h" #import "UIImage+MemoryCacheCost.h" #import "UIImage+ExtendedCacheData.h" #import "SDWebImageOperation.h" #import "SDWebImageDownloader.h" #import "SDWebImageTransition.h" #import "SDWebImageIndicator.h" #import "SDImageTransformer.h" #import "UIImage+Transform.h" #import "SDAnimatedImage.h" #import "SDAnimatedImageView.h" #import "SDAnimatedImageView+WebCache.h" #import "SDAnimatedImagePlayer.h" #import "SDImageCodersManager.h" #import "SDImageCoder.h" #import "SDImageAPNGCoder.h" #import "SDImageGIFCoder.h" #import "SDImageIOCoder.h" #import "SDImageFrame.h" #import "SDImageCoderHelper.h" #import "SDImageGraphics.h" #import "SDGraphicsImageRenderer.h" #import "UIImage+GIF.h" #import "UIImage+ForceDecode.h" #import "NSData+ImageContentType.h" #import "SDWebImageDefine.h" #import "SDWebImageError.h" #import "SDWebImageOptionsProcessor.h" #import "SDImageIOAnimatedCoder.h" #import "SDImageHEICCoder.h" // Mac #if __has_include("NSImage+Compatibility.h") #import "NSImage+Compatibility.h" #endif #if __has_include("NSButton+WebCache.h") #import "NSButton+WebCache.h" #endif #if __has_include("SDAnimatedImageRep.h") #import "SDAnimatedImageRep.h" #endif // MapKit #if __has_include("MKAnnotationView+WebCache.h") #import "MKAnnotationView+WebCache.h" #endif 改成上面这种引入方式就可以了…

#import 这种引入方式不太适合…

引入系统依赖 CoreText.framework

设置 Other Linker Flags 为 -ObjC


作者:zyw658000



易云 网易 IOS

需要 登录 后方可回复, 如果你还没有账号请 注册新账号