↧
Answer by Simon Tillson for Background thread NSRunloop run does not exit...
This stops a run loop fine for me:[[NSRunLoop currentRunLoop] runUntilDate: [NSDate date]];If you're writing code which may be run on the main thread (and hence uses the main runloop) though, you...
View ArticleAnswer by Cal for Background thread NSRunloop run does not exit after NSTimer...
I needed to read the documentation for [NSTimer invalidate].... This method must be called from the same thread in which the timer is installed. If you don't call it from the same thread the timer...
View ArticleAnswer by jscs for Background thread NSRunloop run does not exit after...
From the -[NSRunLoop run] docs:Manually removing all known input sources and timers from the run loop is not a guarantee that the run loop will exit.You should use a different method, possibly...
View ArticleBackground thread NSRunloop run does not exit after NSTimer is invalidated! Why?
I'm creating an NSTimer and adding it to the runloop of a background thread.My code is like the background thread example for this answer: iPhone-SDK:Call a function in the background?After creating...
View Article