¡@

Home 

2014/10/15 ¤U¤È 10:15:07

iphone Programming Glossary: tturlconnection

Background threads consuming 100% CPU on iPhone 3GS causes latent main thread

http://stackoverflow.com/questions/1940903/background-threads-consuming-100-cpu-on-iphone-3gs-causes-latent-main-thread

has had a chance to finish I call CFRunLoopRun as seen here void connectInBackground NSURLRequest URLRequest TTURLConnection connection TTURLConnection alloc initWithRequest URLRequest delegate self Prevent the thread from exiting while the asynchronous.. to finish I call CFRunLoopRun as seen here void connectInBackground NSURLRequest URLRequest TTURLConnection connection TTURLConnection alloc initWithRequest URLRequest delegate self Prevent the thread from exiting while the asynchronous connection completes.. in connectInBackground allowing it to return normally void connectionDidFinishLoading NSURLConnection connection TTURLConnection ttConnection TTURLConnection connection ... Resume execution where CFRunLoopRun was called. CFRunLoopStop CFRunLoopGetCurrent..