what is the meaning of the following syntax in iOS?. typedef void (^something)(NSInteger *a);
objective-c
Solution
Not exactly a function pointer, but a block. A block is an Apple extension to the C language: basically it implements lambda functions. It typedefs the `someString` type to a block returning nothing (`void`) and taking two arguments.
Read more here: http://en.wikipedia.org/wiki/Blocks_(C_language_extension)
and here: http://developer.apple.com/library/ios/#documentation/Cocoa/Conceptual/Blocks/Articles/bxUsing.html
Problem
New to ios. Let me correct if my understanding is wrong?. ``` typedef void (^someString) (datatype variable_name, datatype variable_name). ``` I am basically from C background. It is something like a typedef to function pointer ?..