在 Cell 中有一個播放語音的圖片,點擊之后用uiimage通過animationImages播放幾張圖片,但是當 Cell 滾出屏幕之外的時候,uiimage就不動了,不知是復(fù)用覆蓋了還是怎么?求大神給個解決思路啊
小伙看你根骨奇佳,潛力無限,來學PHP伐。
Finally I know, this is what I did,
Play the audio file after receiving it in the chat VC, and cache cell.rowIdentifier to _rowPlayVoiceAnimationIdentifier, and then traverse visibleCells. If the Cell identifier (row) is the same as the cached one, call the Cell playVoiceAnimation method
Called after audio playback ends, same as above, call Cell stopVoiceAnimation method
Handling when scrolling:
//When the cell is about to be displayed, if it is a Cell that is playing the recording file, then execute the Cell to play the recording animation
if (((ACChatTableViewCell *)cell).rowIdentifier == _rowPlayVoiceAnimationIdentifier) ??{
[((ACChatTableViewCell *)cell) startVoiceAnimation];
}
It’s a bit messy! ! !