far*_*igo 12
您可以使用NSTimer:
将以下内容放在viewDidLoad中(其中300是秒数):
[NSTimer scheduledTimerWithTimeInterval:300.0f
target:self
selector:@selector(updateMethod:)
userInfo:nil
repeats:YES];
Run Code Online (Sandbox Code Playgroud)
然后创建更新方法:
- (void)updateMethod:(NSTimer *)theTimer {
// Your code goes here
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3937 次 |
| 最近记录: |