Home ·

Video Tutorial: Objective-C Blocks

Learn about blocks, one of the coolest and most useful features in Objective-C, but with some funky syntax!

Challenge

Your challenge is to download the challenge starter project and follow the instructions in AppDelegate.m. Basically, use block syntax to order some soup using order:withCompletionHandler: on the Ray class. Also be sure to read and understand all the code in the project.

Download demo code

Download challenge solution

Helpful links

Errata

  • The diagram on the “Declaring a Block” slide has the angle bracket (^) for the variable name outside the parenthesis, but it should be inside the parenthesis like in the code example below the diagram.

Add a rating for this content

More like this

Contributors

Comments