Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 12-24-2009, 05:29 AM   #13 (permalink)
Johanovski
Divine avenger
 
Johanovski's Avatar
 
Join Date: Nov 2009
Location: Vic, Catalunya (Spain)
Posts: 320
Johanovski is on a distinguished road
Default

Hi Jack!

I thought method "imageWithContentsOfFile" didn't cache the image, so there's no need to release it... The returned image is needed to be allocated because it's being used every game's frame, so I can't release the Image class (the one is stored in the array) but, as I've explained, I thought the UIImage is never allocated, just created, returned, stored in the Image class as I've expected, and then destroyed (so a UIImage object is created, a Image object is then allocated and created from the UIImage returned object, and then no UIImage is stored)...
Does it works as I expect? If not (what I suppose), what I have to do to release the UIImage, if I have no object to call release (and no idea of how to autorelease an object, and even if it's possible)?

Thanks, and sorry for my newbie questions...
Johanovski is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 175,421
Threads: 94,016
Posts: 402,537
Top Poster: BrianSlick (7,978)
Welcome to our newest member, maryleeag34
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 01:38 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.