Objective-C blocks (closures) are something that I’ve mentioned in the past several times, most recently in this post about this massive open source collection of Objective-C blocks extensions, and another about a great guide on how to easily enable asynchronous UITableViewCell’s with blocks and Grand Central Dispatch.
It has been over a year since blocks were added to the iOS SDK, but still I see many searches on this site looking for beginner tutorials and guides on using blocks. So if you’re still trying to understand blocks you’re not alone, and I’ve found a great reference resource for you.
The resource is a cheat sheet by Yannick Loriot describing how to create, declare, call, copy blocks, and more all on a single printable page with some nice examples.
You can find the cheat sheet along with a nice summary on using blocks on Yannick’s site here.
A very handy reference to have if you are still trying to understand the syntax of Objective-C blocks.
Submit A Resource
Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?
You can submit the url here.
The resources we feel will appeal to our readers the most will be posted on the front page.