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

Mockup & CodeGen, iPhone & iPad
($9.99)

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

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 10-13-2008, 08:11 PM   #5 (permalink)
cgraus
New Member
 
Join Date: Oct 2008
Posts: 39
Default

Thanks. I have one further question:

UIImage * image = [UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:imagePath ofType:@"png"]];
[self setImage:image];
// [image release];

If I uncomment the code that releases image, the app crashes with a bad access. Is this an exception to the rule, or have I misunderstood something ?
cgraus is offline   Reply With Quote
 

» Advertisements
» Online Users: 691
23 members and 668 guests
306Designs, apatsufas, BrianSlick, chits12345, ckgni, coder, Dani77, devangvyas, Domele, ghost, JamesCahall, jameswilliards, k2c, my02820, nitingohel, Objective Zero, Oral B, Prajakta, rky, robin4kneb, skrew88, StormFactory, Vad
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,783
Threads: 89,204
Posts: 380,594
Top Poster: BrianSlick (7,129)
Welcome to our newest member, robin4kneb
Powered by vBadvanced CMPS v3.1.0

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