如何在Swift中使用NSTimer?
我试过了
var timer = NSTimer()timer(timeInterval: 0.01, target: self, selector: update, userInfo: nil, repeats: false)
但是,我说错了
'(timeInterval: $T1, target: ViewController, selector: () -> (), userInfo: NilType, repeats: Bool) -> $T6' is not identical to 'NSTimer'
红糖糍粑
哈士奇WWW
慕尼黑8549860