I've got an NSArray setup in my code to display two PNG's alternately flashing, I'm trying to setup a piece of code that sets it to a hidden status, moves it off screen, anything to get it out of sight of the user.
The code for my array is
NSArray *imageArray = [[NSArray alloc] initWithObjects:
[UIImage imageNamed:@"CONNECTED dark yellow FF CC 00.png"],
[UIImage imageNamed:@"CONNECTEDR dark yellow FF CC 00.png"], nil];
UIImageView *animation = [[UIImageView alloc] initWithFrame: CGRectMake(20, 10, 300, 80)];
animation.animationImages = imageArray;
animation.animationDuration = .8;
animation.contentMode = UIViewContentModeBottomLeft;
[self.view addSubview:animation];
[animation startAnimating];
[animation release];
[view release];
However if I try using a setHidden or .hidden:YES it doesn't seem to hide and cries out that animation is not declared. Can anyone suggest the answer to this? Sure its staring me slap bang in the face but after a few hours of trying? I've admitted defeat for now.