这是一个固定写法,2.0为时间,单位为秒,可修改
1 2 3 4 5 | dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(2.0 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ /* code... */ }); |
这是一个固定写法,2.0为时间,单位为秒,可修改
1 2 3 4 5 | dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(2.0 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ /* code... */ }); |
You must be logged in to post a comment.