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 the compiler?
- Does it do anything else?
- If that's all it does then why is it needed in the first place?
- Is it in the docs anywhere? (I can't find it).
转载于:https://stackoverflow.com/questions/7080927/what-does-the-block-keyword-mean