请教下,保存图片取不到图片data,直接报错
2952883085 opened this issue · comments
2952883085 commented
animatedImageView = (FLAnimatedImageView *)currentView.imageview;
NSData *imageData =animatedImageView.animatedImage.data;//这句报Property 'data' cannot be found in forward class object 'FLAnimatedImage'
chennyhuang commented
你用的 iOS系版本?真机还是模拟器?
2952883085 commented
真机,系统ios12
2952883085 commented
app支持系统最低ios9.0
2952883085 commented
真机,系统ios12,app支持系统最低ios9.0
chennyhuang commented
有没有将FLAnimatedImage导到项目中
pod 'SDWebImage'
pod 'FLAnimatedImage'
pod 'SDWebImage/GIF'
2952883085 commented
FLAnimatedImage、GIF我是手动导入的
2952883085 commented
但是我是可以找到FLAnimatedImageView,在FLAnimatedImageView里面我也看到了有data属性,但是就是掉不出来
2952883085 commented
其他功能都正常,就保存这里会报错
chennyhuang commented
用 pod试试
2952883085 commented
我发现一个问题,FLAnimatedImage下的所有属性都调不出来
chennyhuang commented
我的工程能跑的话说明还是你自己没弄正确
2952883085 commented
pod 'SDWebImage/GIF',pod找不到呀,安装不了
2952883085 commented
SDWebImage 4.0.0,我pod搜索了最高3.8.2呀
chennyhuang commented
这些初级问题不要在这问了,自己摸索吧
2952883085 commented
好吧