Friday 15 July 2011

Arc memory leaks and UIImage named ios -


Hello I have two questions basically

1) Do still memory leaks while working Need to handle Ios6 xcode 4.2 as ARC environment I came to know that Chuck only calls at the end of the scope.

2) Statement

self.profileImageView.image = [UIImage imageNamed: @ "createprofile_addPhoto.png"];

It keeps the image in memory which is a heavy process for the screen. I had read it in many places but there was no option code to replace it. There is no better solution.

I just need to handle memory problems

I do not know if I'm explaining your question well, but: managing 1-ARC Objective-Object and all memory for GCD queues in iOS 6- This is the way to which you can call for storage for further calls Are using cache in So if you are calling this image then there are so many values ​​(provided that the image is really big).

If you need to create a small area then you can embed your code into a code in @autorelease. The block is useful when working with the circle, but if you use -imageNamed: , as I told that the image will cache better use -imageWithContentsOfFile : .
Leaks in ARC are almost impossible, if you are working with the core foundation opaque type, then it is not automatically managed by ARC. ARC may be used, memory is left or preserves the cycle, never heard of leaks.
Hope this helps, Andrea

No comments:

Post a Comment