Blocks are Objective c`s anonymous functions .
Block is a self-contained, autonomous code fragment, existing always in the scope of another programming structure , e.g. body of a method.
- ReturnType : Any datatype supported by Objective c
- ^Name of the block : Name of the block is always preceded by the carret symbol (^).
- Parameters : Parameters which you want to pass on the block.
Block example :