iOS memory debugging
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.
精彩评论