Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 573
AnExtremelySmellyPerson Avatar asked Dec 09 '10 16:12

AnExtremelySmellyPerson


1 Answers

Yes, it is executed on the main thread.

like image 174
Rits Avatar answered Sep 19 '22 06:09

Rits