您可以使用NSTimer.
以下是一个例子
//in your viewdidload var timer = NSTimer.scheduledTimerWithTimeInterval(0.4, target: self, selector: "update", userInfo: nil, repeats: true) // must be internal or public. func update() { // your repeating function }