|Mar 2, 2010, 06:12 AM||#1|
Issues in fixing Memory Leaks
I am using lots of images in my application. When I run it on 3.1 device, its working fine but If I try to run the app. on 3.0 device, after 10-12 times, the images got invisible from some views.
I have used UIImage ImageNamed for passing the image.
I was googling for this and I found that by using ImageNamed, the app. caches the images and does not release it. Instead of this use "imagewithContentsofFile".
Can anyone please guide how to use "imagewithContentsofFile" accurately instead of ImageNamed.
Thanks in Advance.
|Mar 2, 2010, 07:34 AM||#2|
What, exactly, are you having trouble with when you are using imageWithContentsOfFile:? Use the methods in NSBundle to get the path to the resource and away you go...
Sponsor me to cycle 100Km round London in the dark
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|What's taking my active memory?||gatortpk||Mac Applications and Mac App Store||2||Jan 21, 2011 03:41 AM|
|Memory leak to fix||boyplunder||iPhone/iPad Programming||9||May 29, 2009 01:15 PM|
|iTunes 7.6 fixed memory leak?||cmcbridejr||Mac Applications and Mac App Store||1||Jan 18, 2008 02:35 PM|
|Fixing memory Leaks in Safari???||rhesusv||Mac Applications and Mac App Store||3||Mar 4, 2007 12:51 PM|
|Memory Management Issues - Memory Leaking Followed By Autorelease Crash||Kelmon||Mac Programming||7||Aug 4, 2006 01:34 AM|
All times are GMT -5. The time now is 05:00 PM.