In my storyboard,I have a button which i want to blink it for infinite times till the program gets killed.Here is what I have done so far,This code makes the button to animate only once.
@IBOutlet weak var blinker: UIButton!
func Blink(){
blinker.alpha = 0.0
UIButton.animateWithDuration(1, animations: {
self.blinker.alpha = 1.0
}, completion: {
(value: Bool) in
println(">>> Animation done.")
})
}
Any help would be appreciated....