swift 版本 :
DispatchQueue.main.asyncAfter(deadline: DispatchTime.now() + 1) {
}
oc 版本:
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(.1 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
});
swift 版本 :
DispatchQueue.main.asyncAfter(deadline: DispatchTime.now() + 1) {
}
oc 版本:
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(.1 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
});