本文共 454 字,大约阅读时间需要 1 分钟。
- (void)animationPushMemory:(NSInteger)index
{
CATransition* animation = [CATransition animation];
[animation setDuration:0.52f];
[animation setType:kCATransitionPush];
[animation setSubtype:kCATransitionFromRight];
[animation setTimingFunction:[CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseIn]];
animation.delegate = self;
[[self.view layer]addAnimation:animation forKey:@"switchView"];
self.masterController.selectedIndex = index;
}
转载地址:http://dokob.baihongyu.com/