(iphone) UIImageView setImage: leaks?

前端 未结 4 1536
无人共我
无人共我 2020-12-03 15:52

i\'m changing image of UIImageview by [self setImage: newImage];

Looks like every time I does that with newImage, prior image doesn\'t seem to be released.
Wha

4条回答
  •  隐瞒了意图╮
    2020-12-03 16:22

    Your BrutalUIImageVIew class is really interesting, but by drawing the Image using UIImage "drawInRect:" method, i loss the transparent areas of my PNG file.

    Do you know how to draw the image, keeping the PNG transparence ? (Of course, not using UIImageVIew wich leaks the CGImage while calling "setImage:")

提交回复
热议问题