I have a game which is made in SpriteKit. I have made it based on the 7.1 SDK, but now I have to make it work on 7.0 as well. So everything is OK, except that one of my completion blocks does not run on 7.0. Here is the code:
[self.strechableArmSprite runAction:[SKAction rotateToAngle:0 duration:0] completion:^{
[self.warriorPhysicalHand removeFromParent];
[self.warriorHand removeFromParent];
[self runAction:self.slapReverseAction completion:^{
completionBlock();
}];
}];
The slapReverseAction
action is a simple animation:
sumoWarrior.slapReverseAction = [SKAction runBlock:^{
[sumoWarrior runAction:sumoWarrior.slapReverseSumoAction];
[sumoWarrior.strechableArmSprite removeFromParent];
}];
Any ideas why the completionBlock()
is not getting called on iOS 7.0?