nsthread
Using AsyncSocket with secondary threads on the iPhone
I use AsyncSocket on the iPhone to communicate with a server. AsyncSocket is based on run loops but my app is based on threads. That means, I start a new thread to write data and wait until a response[详细]
2023-02-05 12:24 分类:问答Cocoa - NSThread and First Responder
When I start a 2nd background thread and pause the main thread, will my First Responder still be in action? For example I have an overwriting method called -flagsChanged and was wondering if it would[详细]
2023-02-03 05:31 分类:问答how to stop running thread if app went to background mode in iphone?
I am开发者_开发百科 creating an iphone application which i need to stop a running thread if the application went to background mode,is it possible to stop thread in iphone application?[详细]
2023-02-01 17:54 分类:问答secondary thread regarding
I have a main and an auxiliary thread in my app. Main thread as everyone knows is being used by UI. I use the secondary thread to do the background loading of my views.[详细]
2023-02-01 08:54 分类:问答Does every thread need its own autorelease pool?
Does every thread have to have its own pool? I am writing an iPhone app which uses threads. If I do not put a pool on a thread it complains abut leaking.[详细]
2023-02-01 05:55 分类:问答NSThread VS pthreads
What is the difference between NSThread and pthread? Does NSThread use pthread as its internal implementation and do we really need the extra overhead of NSThread when pthreads suffice especially on t[详细]
2023-01-29 10:43 分类:问答How to handle leaks when using a multiple threads in iphone?
I have called a method in separate thread in viewdidload method [NSThread detachNewThreadSelector:@selector(callWebService) toTarget:self withObject:nil];[详细]
2023-01-29 06:33 分类:问答Setting Local Notifications on a new thread?
I need to know if it is possible to create a new thread to handle setting local notificati开发者_JAVA百科ons.[详细]
2023-01-27 10:36 分类:问答RSS on a different thread doesnt work but works fine when on the main thread
I\'m trying to get an rss parser on a different thread in my iphone app, but when I do this I only get the spinning indicator (i.e., nothing).But if I comment out the call [NSThread....] in viewDidApp[详细]
2023-01-26 12:06 分类:问答How can I fade out an AVAudioPlayer on a background thread?
I have an audio file which needs to fade out while the user is scrolling a UIScrollView. However, any performSelector:withObject:afterDelay: method is blocked until the user has stopped scrolling. So[详细]
2023-01-25 21:58 分类:问答