Video Tutorial: Objective-C Blocks

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

Leave a rating/review
Save for later
Share

Contents

Hide contents

Video Tutorial: Objective-C Blocks

0 mins

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.
Ray Wenderlich

Contributors

Ray Wenderlich

Author

Over 300 content creators. Join our team.