iOS、Swift我的收藏

iOS14适配 FLAnimatedImage在iOS14中 g

2020-09-27  本文已影响0人  iOS_SOHO

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

将FLAnimatedImage的loopCount属性改为0即可

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

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

上一篇 下一篇

猜你喜欢

热点阅读