Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Mar 2, 2010, 06:12 AM   #1
sanjeev
macrumors newbie
 
Join Date: Dec 2009
Issues in fixing Memory Leaks

Hello Friends,

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.

Regards,
sanjeev is offline   0 Reply With Quote
Old Mar 2, 2010, 07:34 AM   #2
robbieduncan
Demi-God (Moderator)
 
robbieduncan's Avatar
 
Join Date: Jul 2002
Location: London
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...
robbieduncan is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
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.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

Privacy / DMCA contact / Affiliate and FTC Disclosure
Copyright 2002-2013, MacRumors.com, LLC