dispatch_time_t timer = dispatch_time(DISPATCH_TIME_NOW, 1 * NSEC_PER_SEC); dispatch_after(timer, dispatch_get_main_queue(), ^{ NSLog(@"这里延时1秒后做事。"); });
posted on 2021-12-16 19:51 高彰 阅读(36) 评论(0) 编辑 收藏 举报
Powered by: 博客园 Copyright © 2024 高彰 Powered by .NET 8.0 on Kubernetes