Not too long after support for blocks (or closures as they were originally named) was added into the iOS SDK I posted about a tutorial and set of examples on blocks. If you were familiar with blocks from using them in another language such as Python or Ruby then you probably understood things pretty quickly with those examples. If you are unfamiliar with blocks those examples should give you a good grasp of the basics.
I’ve found another tutorial that gives a good overview of blocks, and tips for beginners, but also gets into other topics not included in the previous tutorial such as how blocks are used in concurrency programming.
The tutorial is from Jim Dovey and can be found here:
Programming With Blocks An Overview
If you’ve been having trouble understanding blocks – and why and when to use them this tutorial is great.
©2011 iPhone, iOS 4, iPad SDK Development Tutorial and Programming Tips. All Rights Reserved.
.






