I think you need to retain
the three arrays you create in viewDidLoad
-- you never call alloc
on them, so you don't have ownership until you call retain
.
Daniel Dickison
2009-04-07 19:15:05
I think you need to retain
the three arrays you create in viewDidLoad
-- you never call alloc
on them, so you don't have ownership until you call retain
.
Instead of just calling retain use the initWithObjects message:
slowAnimation = [[NSArray alloc] initWithObjects:
[UIImage imageNamed:@"image1.jpg"],
[UIImage imageNamed:@"image2.jpg"],
nil];