- (IBAction)rotateGesture:(UIRotationGestureRecognizer*)sender {
SKSpriteNode * face=(SKSpriteNode*)[self.skView.scene childNodeWithName:@"face_layer"];
SKAction* action=[SKAction rotateToAngle:sender.rotation duration:0];
[face runAction:action];
}
face is the SKSpriteNode and it is not nil (I have tested it.)
This method is called by UIRotationGestureRecognizer and there is no exception but only crashed when I make a rotation gesture on my device.
模拟器上一切正常!!!
(我的 iPad mini 2 也可以。但 iPhone 4 不行。)
任何帮助表示赞赏!非常感谢。
None
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)