SyntaxFix
Write A Post
Hire A Developer
Questions
Just use the __block prefix to declare and assign any type of variable inside a block.
__block
For example:
__block Person *aPerson = nil; __block NSString *name = nil;