遅延処理
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, 1.0 * NSEC_PER_SEC), dispatch_get_main_queue(), ^{
// 処理内容
});
- (void)doAfterDelay{
// 処理内容
}
[self performSelector:@selector(doAfterDelay) withObject:nil afterDelay:1];
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, 1.0 * NSEC_PER_SEC), dispatch_get_main_queue(), ^{
// 処理内容
});
- (void)doAfterDelay{
// 処理内容
}
[self performSelector:@selector(doAfterDelay) withObject:nil afterDelay:1];