Blocks are Apple’s implementation of closures for C, which are also available for Objective-C and C++.
I'm in a situation where need to call a class method from my view controller, have it do it's thing, …
ios objective-c objective-c-blocksI have just discovered completion blocks: completion:^(BOOL finished){ }]; What do I need to do to have my own method …
objective-c objective-c-blocksBesides the obvious differences: Use enumerateObjectsUsingBlock when you need both the index and the object Don't use enumerateObjectsUsingBlock when you …
objective-c multithreading ios4 objective-c-blocksI'm afraid this question is pretty basic, but I think it's relevant to a lot of Objective-C programmers who are …
objective-c memory-management objective-c-blocksI have a callback method that I got to work, but I want to know how to pass values to …
objective-c ios methods callback objective-c-blocksBear with me, this is going to take some explaining. I have a function that looks like the one below. …
objective-c cocoa core-data grand-central-dispatch objective-c-blocksI have a method that accepts a block and a completion block. The first block should run in the background, …
objective-c cocoa-touch ios6 objective-c-blocks grand-central-dispatchI've just run into blocks and I think they are just what I'm looking for, except for one thing: is …
objective-c self objective-c-blocksI would like to write a method similar to this: +(void)myMethodWithView:(UIView *)exampleView completion:(void (^)(BOOL finished))completion; I've …
objective-c ios callback objective-c-blocksI have a function using AFJSONRequestOperation, and I wish to return the result only after success. Could you point me …
ios objective-c-blocks synchronous afnetworking