CATransition *animation = [CATransition animation];
[animation setType:kCATransitionPush];
[animation setSubtype:kCATransitionFromLeft];
[animation setDuration:0.3];
[[self.view layer] addAnimation:animation forKey:nil];
个人理解在kCATransitionPush动画过程当前页面透明度随之变化,当前界面透明度为0的时候露出了window颜色,所以出现了闪白
解决办法:将Window.backgroundColor修改为当前页面同样的颜色
网友评论