I'm trying to set a BOOL value which is defined in my class inside a block, but I can't see to be able to set it. This is the code.
__weak __block SPTween *tween2weak = tween;
__block BOOL buttonScroll2 = buttonScroll;
tween.onComplete = ^{
[Sparrow.juggler removeObject:tween2weak];
buttonScroll2 = NO;
};
I presume when I do buttonScroll2 = NO
, all Im doing is setting a separate variable and not the original, but how do I get to the original from inside the block then?