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 ?
|