ios - What is NSRunLoop? -


this question has answer here:

i have been reading documents run loop, still can not understand exactly. ios not open source, while nsrunloop special ios/mac os x platform, real implementation inside?

if have kind of user interface, or other code needs listen events (like network ports), need run loop. every nsthread automatically gets own run loop, , have concern them directly. run loop in charge of creating , releasing autorelease pools.

for more information : what basic difference between nstimer, nstask, nsthread , nsrunloop?


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -