Hmmm.. having trouble figuring this one out...
Debugging animation.. Sometimes it stutters sometimes it's perfect, sometimes it stutters like an angry drunk..
Works perfectly on the simulator but on iphone 4 + iOS 5.1.1 more stutter than works.
I disable the button on once clicked.
any ideas anyone.. ???
Debugging animation.. Sometimes it stutters sometimes it's perfect, sometimes it stutters like an angry drunk..
Code:
CABasicAnimation *scaleAnim = [CABasicAnimation animationWithKeyPath:@"transform"];
scaleAnim.fromValue = [NSValue valueWithCATransform3D:CATransform3DIdentity];
scaleAnim.toValue = [NSValue valueWithCATransform3D:CATransform3DMakeScale(0.3, 0.3, 1.0)];
scaleAnim.removedOnCompletion = YES;
CABasicAnimation *opacityAnim = [CABasicAnimation animationWithKeyPath:@"opacity"];
opacityAnim.fromValue = [NSNumber numberWithFloat:SetMoonBase];
opacityAnim.toValue = [NSNumber numberWithFloat:0.1];
opacityAnim.removedOnCompletion = YES;
CAAnimationGroup *animGroup = [CAAnimationGroup animation];
animGroup.duration = 0.4;
if (animFunc==fadoutFunction) {
animGroup.duration = 1.2;
//[self performSelector:@selector(doNothing) withObject:nil afterDelay:2.0];
}
animGroup.animations = [NSArray arrayWithObjects:opacityAnim,scaleAnim,nil];
[scaleAnim setDelegate: self];
[[[buttonArray objectAtIndex:buttonNumber] layer] addAnimation:animGroup forKey:@"fadeout"];
Works perfectly on the simulator but on iphone 4 + iOS 5.1.1 more stutter than works.
I disable the button on once clicked.
any ideas anyone.. ???
Last edited: