开发者

UIimageView animation is using too much memory

开发者 https://www.devze.com 2023-02-20 03:41 出处:网络
I have two开发者_如何学运维 uiimageview animations. One on each of two view controllers in a navigation controller.

I have two开发者_如何学运维 uiimageview animations. One on each of two view controllers in a navigation controller.

They have about 10-15 frames each. This is the smallest I can possibly make them.

They seem to be using a hell of a lot of memory though. Especially on startAnimating. Is there any way around this?

On my iPad this is causing a memory warning an a leak. I've tried looking into it, and as per an earlier question on here I've been using a lot of memory tools and such and narrowed the issue down to the startAnimating function.

I have read that this is because on startAnimating the imageView puts all the images into memory at this point.

However removing from superview and releasing dosen't seem to have a marked effect on the amount of memory reclaimed.

Is there any way around this? Bar creating a custom OpenGL style animation?

Thanks


Even i use to face same Problem.. I came up with solution by using custom navigation controller. Now i don't see any memory warnings or memory leaks.

Try to implement your own custom navigationController.

0

精彩评论

暂无评论...
验证码 换一张
取 消