Different ways you can make use of blocks with examples. Hope it helps you get going with blocks :-). View the code on Gist.
Different ways you can make use of blocks with examples. Hope it helps you get going with blocks :-). View the code on Gist.
Delegates are a very simple and straight forward feature in objective C. Some of its usage scenarios can be when you want to pass data between two controllers, or set a value when something happens..etc. You can do the same using blocks. Disclaimer: I am not trying to compare between these two programming techniques. In