Comments (4)
gifData
from uiimageview-playgif.
还是写中文吧!就是UICollectionView九宫格、使用多张不同的GIF 滑动会出现重复的GIF,效果大概是和重用机制没用好一样!都重复了
from uiimageview-playgif.
cell.imageCameraView.image=nil;
[cell.imageCameraView stopGIF];
if (data) {
if (!cell.imageCameraView.isGIFPlaying) {
cell.imageCameraView.image=image;
}
cell.imageCameraView.gifData =data;
[cell.imageCameraView startGIF];
}else{
cell.imageCameraView.image =image;
}
暂时解决了重用错位的办法~~~~~~~~
from uiimageview-playgif.
@Yexinglong 我觉得你可以在cell的prepareForReuse中将imageView.gifData = nil 然后stopGif,设置image属性是没有用的,这个播放底层不是用imageView.image属性显示的,而是用imageView.layer.content实现的
from uiimageview-playgif.
Related Issues (14)
- 请问支持播放速度吗? HOT 4
- 您好!提一个问题。
- Playing GIF is slow,the speed issue?
- Cocoapods outdated HOT 2
- Hell with performSelector:@selector(play) HOT 1
- 提一个问题
- 一个小bug HOT 1
- Load GIF from server url
- 多线程下dictRef 需要做非空判断,遇到过crash HOT 1
- How to use in swift HOT 1
- 可否提供一个接口playOnce,就是只播放一遍gif就停止,现在的接口是无限循环播放 HOT 1
- 关于网络GIF卡顿的问题 HOT 1
- 提个改进
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from uiimageview-playgif.