Skip to content
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

请教下,保存图片取不到图片data,直接报错 #32

Open
2952883085 opened this issue Oct 16, 2018 · 15 comments
Open

请教下,保存图片取不到图片data,直接报错 #32

2952883085 opened this issue Oct 16, 2018 · 15 comments

Comments

@2952883085
Copy link

animatedImageView = (FLAnimatedImageView *)currentView.imageview;
NSData *imageData =animatedImageView.animatedImage.data;//这句报Property 'data' cannot be found in forward class object 'FLAnimatedImage'

@chennyhuang
Copy link
Owner

你用的 iOS系版本?真机还是模拟器?

@2952883085
Copy link
Author

真机,系统ios12

@2952883085
Copy link
Author

app支持系统最低ios9.0

@2952883085
Copy link
Author

真机,系统ios12,app支持系统最低ios9.0

@chennyhuang
Copy link
Owner

有没有将FLAnimatedImage导到项目中

pod 'SDWebImage'
pod 'FLAnimatedImage'
pod 'SDWebImage/GIF'

@2952883085
Copy link
Author

FLAnimatedImage、GIF我是手动导入的

@2952883085
Copy link
Author

但是我是可以找到FLAnimatedImageView,在FLAnimatedImageView里面我也看到了有data属性,但是就是掉不出来

@2952883085
Copy link
Author

其他功能都正常,就保存这里会报错

@chennyhuang
Copy link
Owner

用 pod试试

@2952883085
Copy link
Author

我发现一个问题,FLAnimatedImage下的所有属性都调不出来

@chennyhuang
Copy link
Owner

我的工程能跑的话说明还是你自己没弄正确

@2952883085
Copy link
Author

pod 'SDWebImage/GIF',pod找不到呀,安装不了

@2952883085
Copy link
Author

SDWebImage 4.0.0,我pod搜索了最高3.8.2呀

@chennyhuang
Copy link
Owner

这些初级问题不要在这问了,自己摸索吧

@2952883085
Copy link
Author

好吧

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants