title: iOS7 SpriteKit how to wait for an animation to complete before resuming method execution?
body: <p><strong>Is there a way to make a method wait for a SpriteKit action initiated within the method to complete before continuing code execution?</strong> Here's what I have so far, but it just hangs at the wait loop. </p>
  
  <pre><code>    __block BOOL  wait = YES;
  
      SKAction* move = [SKAction moveTo:destination duration:realMoveDuration];
      SKAction* sequence  = [SKAction sequence:@[[SKAction waitForDuration:0.07],move,[SKAction waitForDuration:0.07] ]];
  
      [spellEffect runAction:sequence  completion:^{
          [spellEffect removeFromParent];
          wait = NO;
      }];
      DLog(@"Waiting");
      while (wait) {
  
      }
  
      DLog(@"Done waiting");
  </code></pre>