Is it a good idea to load images (1 block each) through Grand Central Dispatch in iOS 4.0? (for use in a UITableView)
Why is a runloop preferred by Apple, as illustrated in the WWDC video sessions 207 and 208?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The point being made in those videos was that Foundation networking does not integrate well with Grand Central Dispatch right now, so if you want to do Foundation-based networking a runloop is your best bet for avoiding the problems of traditional threads. However, in Session 206 – “Introducing Blocks and Grand Central Dispatch on iPhone”, you’ll see that they show an example of how to use GCD for just this purpose.
Me, I prefer GCD because of the elegance of the code and because (as they state in those videos) it is the way of the future.