Hi, I have a question, I've design an app with UIButtons and below of it is an UIImageView. My problem was when I start my app the UIButtons get underneath on UIImageView. Here's my code for my UIButtons.
Code:
CALayer *touchedLayer = [myUIButton layer];
CABasicAnimation *wiggleAnimation = [CABasicAnimation animationWithKeyPath:@"transform"];
wiggleAnimation.duration = .1;
wiggleAnimation.repeatCount = 1e100f;
wiggleAnimation.autoreverses = YES;
wiggleAnimation.fromValue = [NSValue valueWithCATransform3D:CATransform3DRotate(touchedLayer.transform, -.15 , 0.0 , -1.0 ,-1.5)];
wiggleAnimation.toValue = [NSValue valueWithCATransform3D:CATransform3DRotate(touchedLayer.transform, -.15 , 0.0 , -1.0 ,-1.5)];
[touchedLayer addAnimation:wiggleAnimation forKey:@"wiggle"];
When the animation start my UIButtons gets underneath, and my UIImageView goes above the UIButtons, why?