我有一个假设void xyz()的方法,它会在每3秒后从一个View Controller自动调用.
我不知道该使用什么,我是否必须使用NSThread或PerformSelector.
指导我们.
[NSTimer scheduledTimerWithTimeInterval:3.0f target:self selector:@selector(runMethod) userInfo:nil repeats:YES]; -(void)runMethod { }