Saturday, February 5, 2011

Blocks - Pass a piece of code as you pass the object

Blocks is an interesting feature of Objective-C programming, borrowed from C. Apple has introduced concept of "Blocks" as part of iOS-4. This feature allows the application programmer to pass the block of code as you pass the object to a function. It resembles functions pointers in C, but can be used in many other ways.

Sounds interesting?? Read Mike Clark's tutorial to learn how to use the blocks http://bit.ly/9NHV7I
Also Apple's documentation on blocks here.. http://bit.ly/hCiaQ6

Now you must be wondering how are blocks processed by the compiler.. right?
Read on... http://bit.ly/4xYoKb

No comments:

Post a Comment