次のようにタイマーを使用してオブジェクトを呼び出しています。
NSTimer *mainTimer = [NSTimer scheduledTimerWithTimeInterval:1
target:thisTimer
selector:@selector(increaseSeconds)
userInfo:nil
repeats:YES];
やりたいことは、関数increaseSeconds
を呼び出したオブジェクトのプロパティを設定することです。このようなもの:
- (void)increaseSeconds {
parent.label.text = whatever....;
}