XML parsing on new thread
In my application, I want to fetch new xml data after user scrolls through tableview and pulls the first cell down. As the data is load开发者_高级运维ed in tableview in chronological order, the updated data will be shown before the first cell.
I want to run this process on new thread, so what is the best option :
Subclass NSThread and use its instance
Subclass NSOperation and use its instance
Use NSThread methods directly
Thanx in advance.
Subclass NSOperation, it's much more convenient than NSThread.
Take a look at this post which help me a lot : http://www.cimgf.com/2008/02/16/cocoa-tutorial-nsoperation-and-nsoperationqueue/
精彩评论