views:

32

answers:

2

i want the image will be displayed and then hide and so on, i tried nil and blank ...

-(void) animationGlaw {

    glawBall.animationImages = [NSArray arrayWithObjects:
            [UIImage imageNamed:@"1.png"],
            [UIImage imageNamed:@""], nil];
    glawBall.animationDuration = 0.50;
    glawBall.animationRepeatCount = 0;
    [glawBall startAnimating];

}
A: 

Try using a just a transparent PNG for the final image.

rjstelling
i know, i thought there is maybe a smarter way. thanks.
omri
A: 

if you only want one image then none, you could try animating the opacity, and diong the animation very fast. If a fade out is acceptable then this would work even better. here is an example of animating the opacity.

you could also use the delegate to get notification when your animation ends and remove the image altogether, see here for an example of using the animationDidStop:finished: callback method.

Aran Mulholland
thanks i will try.
omri