This content has 11 years. Please, read this page keeping its age in your mind.In this part we are going to examine various examples of how we can define methods that accepts blocks. Instead of using them simple as parameters in Cocoa Framework methods, we can design our own methods that accepts blocks. Block as
Tag: blocks
Blocks in objective C – part 2
This content has 11 years. Please, read this page keeping its age in your mind.In part 1 of my blocks’ adventures I wrote about the basics, block declaration, block definition and general usage. The first thing that you are going to need in iOS development is to use blocks as arguments in Cocoa framework methods,
Blocks in objective C – part 1
This content has 11 years. Please, read this page keeping its age in your mind.With the release of iOS4 blocks became available in objective C. It is not something new, they are exist in other languages like Java’s anonymous classes and C# lamdas. I have to admit that because of the syntax and the way