Is there any guide for iOS runloop mechanism?
问题 I'm learning socket communication on iPhone, and its guide said something about CFRunloop (it is a guide for CFNetwork , can this be used on iOS?) Where can I learn about runloop on iOS?API reference is not enough. 回答1: Look at the "Run Loops" chapter of Apple's Threading Programming Guide. In brief: There is one run loop associated with each thread. The run loop has to be run to do anything. Apple's application main function takes care of this for you on the main thread. A run loop is run in