//动画
CATransition *transition = [CATransition
animation];
transition.duration =
6.0;
transition.type =
kCATransitionMoveIn;
transition.subtype =
kCATransitionFromBottom;
[self.view.layer
addAnimation:transition forKey:@"t"];
[UIView
animateWithDuration:4.0
animations:^{
self.view.backgroundColor = [UIColor
grayColor];
}
completion:^(BOOL finished) {
self.view.backgroundColor = [UIColor
purpleColor];
}];