美文网首页iOS、Swift我的收藏
iOS14适配 FLAnimatedImage在iOS14中 g

iOS14适配 FLAnimatedImage在iOS14中 g

作者: iOS_SOHO | 来源:发表于2020-09-27 16:08 被阅读0次

iOS14适配 FLAnimatedImage在iOS14中 gif动画效果只展示一次就自动停止播放

将FLAnimatedImage的loopCount属性改为0即可

1、将FLAnimatedImage.h文件的loopCount属性改为可读可写

2、将FLAnimatedImage.m文件在+ (instancetype)animatedImageWithGIFData:(NSData *)data方法中,将animatedImage.loopCount设为0,表示可以无限循环播放GIF动画

相关文章

网友评论

    本文标题:iOS14适配 FLAnimatedImage在iOS14中 g

    本文链接:https://www.haomeiwen.com/subject/vqqxuttx.html