NSTimer 在主线程上获取 运行 是否正确?

Is this correct for a NSTimer to get run on the main thread?

你好,我想在主线程上 运行 一个 NSTimer 我不确定它们是否默认在主线程上 运行 或者我必须做一个特殊的实现?感谢任何可以提供帮助的人

@interface RootViewController : UIViewController {

        NSTimer *minutePassed;
    }

    - (void)adViewDidLoad
    {

    minutePassed = [NSTimer scheduledTimerWithTimeInterval:60.0 target:self selector:@selector(callMinutedPassed) userInfo:nil repeats:NO];

    }

    -(void)callMinutePassed
    {
    NSLog("Minute Passed");
    }

scheduledTimer(timeInterval:target:selector:userInfo:repeats) 的文档说明 Creates a timer and schedules it on the current run loop in the default mode.。这意味着在您的实例中,它在主线程上是 运行 。我假设当你说 -(void)adViewDidLoad 时你的意思是 -(void)viewDidLoad().