Maybe pfp
Maybe
@0xmaybe
iOS Daily climbing mountain: Day 1: Objc - Block & Memory Management: You can discuss with me bellow :))
5 replies
0 recast
0 reaction

Maybe pfp
Maybe
@0xmaybe
Declare: http://fuckingblocksyntax.com/
0 reply
0 recast
0 reaction

Maybe pfp
Maybe
@0xmaybe
Include StackBlock and GlobalBlock
0 reply
0 recast
0 reaction

Maybe pfp
Maybe
@0xmaybe
Blocks are always objects
0 reply
0 recast
0 reaction

Maybe pfp
Maybe
@0xmaybe
NSMallocBlock never actually copies Copying a block doesn't really give you a copy of the block — if the block is already an NSMallocBlock, a copy simply increases the retain count of the block If you need a genuinely separate copy, recreate the block, don't copy it.
0 reply
0 recast
0 reaction

Maybe pfp
Maybe
@0xmaybe
Blocks retain their NSObject scope variables
0 reply
0 recast
0 reaction