June 2011
Intermediate to advanced
590 pages
19h 31m
English
In iOS 4.0, a language-level feature called blocks was made available. A block is a set of instructions that can be passed around as a variable and called like a function. Blocks provide conveniences for a programmer and performance boosts for applications. If you are familiar with other high-level languages, you may know blocks as closures or anonymous functions. This chapter will briefly cover blocks and some of the common ways to use them. This chapter will also cover an Objective-C language feature called categories.
Earlier, you wrote an application called TouchTracker that allowed the user to paint black lines on a white canvas. In this exercise, you will add functionality that will change ...
Read now
Unlock full access