开发者

iOS memory debugging

开发者 https://www.devze.com 2023-04-12 04:27 出处:网络
I have a lazy loading UIScroll view which keeps three active pages: n-1, n and n+1 and deallocates views outside of the 3-page range. I do see that dealloc is being called for unnecessary views and ye

I have a lazy loading UIScroll view which keeps three active pages: n-1, n and n+1 and deallocates views outside of the 3-page range. I do see that dealloc is being called for unnecessary views and yet when I monitor the memory allocation in Instruments while scrolling I see that Live Bytes increase by 5K each time I scroll the UIScrollView. The number of Living object also keeps increasing despite keeping only 3 active views in the UIScrollView.

The app does not crash or issue memory warning, however, I'm trying to figure out if this is a memory leak I should be aware of. Analyzing the code does not issue any memory leaks warnings.

Any thoughts? Does 开发者_JS百科that mean that memory is leaking along the way?

Thanks.


run instruments using heapshot analysis. it will tell you the allocations and object changes over a period of execution.

0

精彩评论

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

关注公众号