When using GCD, we want to wait until two async blocks are executed and done before moving on to the next steps of execution. What is the best way...
I have a working app and I’m working on converting it to ARC in Xcode 4.2. One of the pre-check warnings involves capturing self strongly in a block leading...
Block syntax in Objective C (and indeed C, I presume) is notoriously incongruous. Passing blocks as arguments looks different than declaring blocks as ivars, which looks different than typedefing...
Is it possible to have blocks as properties using the standard property syntax? Are there any changes for ARC? 8 Answers 8
I’m getting an error Variable is not assignable (missing __block type specifier) on the line aPerson = participant;. How can I make sure the block can access the aPerson...
What exactly does the __block keyword in Objective-C mean? I know it allows you to modify variables within blocks, but I’d like to know… What exactly does it tell...
Is there a way to call a block with a primitive parameter after a delay, like using performSelector:withObject:afterDelay: but with an argument like int/double/float? 20 s 20 I think...