MPMediaItemPropertyArtwork causes crash (weird issue)

前端 未结 2 560
花落未央
花落未央 2021-01-21 22:56

allocations before running \'extra loop\' \"allocations

The code:

2条回答
  •  借酒劲吻你
    2021-01-21 23:23

    Wrap in @autorelease pool?

    Also, why are you setting the image for veryTemp (I assume it's a UIImageView) 800 times in [veryTemp setImage:coverImage]; ?

    Finally:

    [_albumCovers objectAtIndex:indexPath.row];
    

    You're getting the image object at the exact same index (indexPath.row) in your loop. I am not quite sure what you're trying to achieve in your code?

提交回复
热议问题