Hello every one?🙂
I use blow code. how do I stop animating at the Last image.
UIImage(named: "HangangBridge_05_img.png")! this image is the last frame of this animation.
actually I used 'NSTimer' like this issue. but I need more simple code.
@IBAction func pressBtn_Bridge01(sender: AnyObject) {
img_Bridge01.animationImages =
[
UIImage(named: "HangangBridge_01_img.png")!,
UIImage(named: "HangangBridge_02_img.png")!,
UIImage(named: "HangangBridge_03_img.png")!,
UIImage(named: "HangangBridge_04_img.png")!,
UIImage(named: "HangangBridge_05_img.png")!,
]
img_Bridge01.animationDuration = 1
img_Bridge01.animationRepeatCount = -1
img_Bridge01.startAnimating()