I built a NSOperation to run on a background 开发者_Go百科thread, but I have since optimized the operation such that I might be better suited running it in the main thread. Is there a way to direct my NSOperation to run on the main thread instead of a background thread so that I can test things out without significant refactoring?
You can do this in the NSOperationQueue by using mainQueue
http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/NSOperationQueue_class/Reference/Reference.html
加载中,请稍侯......
精彩评论