Is it possible to assign a local variable a value whose scope is outside a block and have it retain its value? In particular, I\'m coding for iOS and I have a nested block i
You're just defining that block, but not executing it. call someBlock(valueForParam1); to execute your block. Otherwise your str pointer points to some garbage and calling getCharAtIndex: crashes your app.