UIImageView-PlayGIF icon indicating copy to clipboard operation
UIImageView-PlayGIF copied to clipboard

tebleView problem

Open Yexinglong opened this issue 9 years ago • 4 comments

A plurality of different GIF, slide UICollectionView squares, you will find gif dislocation problem, I do not know how to solve

Yexinglong avatar Feb 16 '16 04:02 Yexinglong

gifData

Yexinglong avatar Feb 16 '16 04:02 Yexinglong

还是写中文吧!就是UICollectionView九宫格、使用多张不同的GIF 滑动会出现重复的GIF,效果大概是和重用机制没用好一样!都重复了

Yexinglong avatar Feb 16 '16 04:02 Yexinglong

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; } 暂时解决了重用错位的办法~~~~~~~~

Yexinglong avatar Feb 16 '16 04:02 Yexinglong

@Yexinglong 我觉得你可以在cell的prepareForReuse中将imageView.gifData = nil 然后stopGif,设置image属性是没有用的,这个播放底层不是用imageView.image属性显示的,而是用imageView.layer.content实现的

keshiim avatar Jun 16 '17 06:06 keshiim