对于cocos2d-iphone 1.0.1,旋转操作在iPhone 5S和iPad Air中不起作用

Vol*_*ort 2 cocos2d-iphone ios

运用 cocos2d-1.0.1

    [sprite runAction:[CCRotateBy actionWithDuration:10.0 angle:360]];
Run Code Online (Sandbox Code Playgroud)

你的精灵很好地旋转.适用于所有设备和iOS版本.

...除了iPhone 5S和iPad Air.如果你执行上面的代码,旋转是超级毛刺.

我在这些设备中看到的唯一共同点是它们有一些新的处理器.

我该怎么办?Rotate这些设备上的任何操作都搞砸了.

Vol*_*ort 10

我修好了它!

我深入研究CCRotateBy和实施CCRotateTo.他们的update方法就像

-(void) update: (ccTime) t
{   
    [target_ setRotation: (startAngle_ +angle_ * t )];
}
Run Code Online (Sandbox Code Playgroud)

但Xcode警告你target_有多个实现setRotation.如果你把它投射到CCNode它的作品!

-(void) update: (ccTime) t
{   
    [(CCNode*)target_ setRotation: (startAngle_ +angle_ * t )];
}
Run Code Online (Sandbox Code Playgroud)

我不知道为什么这个问题只会出现在那些设备上.