- (void)refresh {
// self.layer.transform = CATransform3DMakeScale(0.1, 0.1, 1);
// //x和y的最终值为1
// [UIView animateWithDuration:2 animations:^{
// self.layer.transform = CATransform3DMakeScale(1, 1, 1);
// }];
CATransition *animation = [CATransition animation];
[animation setDuration:1.0f];
[animation setFillMode:kCAFillModeForwards];
[animation setTimingFunction:[CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseOut]];
[animation setType:kCATransitionPush];
[animation setSubtype:kCATransitionFromRight];
[self.layer addAnimation:animation forKey:nil];
}