Why does not one of my animations play when the view they are in is called from modal mode?

I have a bunch of animations to repeat this work beautifully if they are in their own view controller, which they click on, but if I represent them modally (through a modal transition from the UIButton crane), suddenly none of them play.

Can anyone understand why this could be?

This is an example of adding one animation:

UIView *topTapRipple1 = [[UIView alloc] initWithFrame:(CGRectMake(73, 30, 13.0, 13.0))];
topTapRipple1.backgroundColor = [UIColor clearColor];
topTapRipple1.layer.cornerRadius = topTapRipple1.bounds.size.height/2;
topTapRipple1.layer.borderColor = [UIColor colorWithRed:0.886 green:0.886 blue:0.886 alpha:1].CGColor;
topTapRipple1.layer.borderWidth = 1.0;
[self.middleContentView insertSubview:topTapRipple1 belowSubview:self.middle];

If this view is added to create an animation. But this look is never added. Why is this?

Here is an example project replicating a problem: http://cl.ly/2I3J3m0j441a

+4
1

viewDidLoad, segue , . viewDidAppear:

: CAAnimation CALayer. .

0

All Articles