プッシュされた独自のView Controllerにある場合は美しく動作するように設定された一連のアニメーションがありますが、(UIButtonタップからのモーダルセグエを介して)モーダルに提示すると、突然どれも再生されません。
これがなぜなのか、誰にも分かりますか?
これは、追加される 1 つのアニメーションの例です。
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];
アニメーションを作成するために追加されるビューです。しかし、そのビューは決して追加されません。どうしてこれなの?
問題を再現するプロジェクトの例を次に示します: https://dzwonsemrish7.cloudfront.net/items/163k0D2f2L2P3H0E3y2i/animationtest.zip