简体   繁体   中英

iOS - Does application:didFinishLaunchingWithOptions execute in main thread?

I am wondering if an iOS app delegate's application:didFinishLaunchingWithOptions: method executes from within the main thread?

Ultimately I would like to know whether it is safe to put UI code in this method and if I should keep blocking code (like network interactions) out of it.

Thanks.

是的,它在主线程上执行。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM