延遲執行的幾種方式

1.GCD 延遲兩秒spa dispatch_time_t sleepTime = dispatch_time(DISPATCH_TIME_NOW, (int64_t)(2.0 * NSEC_PER_SEC));orm dispatch_after(sleepTime, dispatch_get_main_queue(),^{get //延遲執行相關代碼it });form 2.performSe
相關文章
相關標籤/搜索