2016-01-07から1日間の記事一覧
1.5秒間隔ではろーはろー言わせたい場合にはこんな感じ func timer() { let timer = NSTimer.scheduledTimerWithTimeInterval(1.5, target: self, selector: "hello", userInfo: nil, repeats: true) timer.fire() } func hello () { let now = NSDate() let…
1.5秒間隔ではろーはろー言わせたい場合にはこんな感じ func timer() { let timer = NSTimer.scheduledTimerWithTimeInterval(1.5, target: self, selector: "hello", userInfo: nil, repeats: true) timer.fire() } func hello () { let now = NSDate() let…