Cocoa Touch - Play an Animation Once -


I have this code, but it plays an animation on a loop and I want to play only once.

Any help

  - (zero) Gameover {// Ship to fly // Explostion UIImage animate * firstBoom = [UIImage imageNamed: @ "Explo_0.png"] ; UIImageView * Big Boom = [[UIImageView alloc] initWithImage: firstBoom]; Big image.edit = Explo_2.png "], [UIImage imageNamed: @" Explo_2.png "], [UIImage imageNamed: @" Explo_2.png "], [UIImage imageNamed: @" Explo_3.png "], [UIImage imageNamed: @" Explo_3. Png "], [UIImage imageNamed: @" Explo_3.png "], [UIImage imageNamed: @" Explo_4.png "], [UIImage imageNamed: @" Explo_4.png "], [UIImage imageNamed: @" Explo_4.png " ], [UIImage imageNamed: @ "Explo_4.png"], [Uii Dana Picture Nominated: @ "Explanation page"], zero]; Bigboom.center = CGTEX (Exordinate, eCordinate); // then it torn to the top of the ship [start big boom]; [Self.view addSubview: bigBoom]; [ShipImageView sethead: yes]; }  itemprop = "text"> 

add line:

  bigBoom  

Animation recurrence number = 1;

Comments