简体   繁体   English

视图之间的转换问题

[英]Problems with transitions between views

I try to create simple transitions between views for my app.我尝试为我的应用程序创建视图之间的简单转换。

-(void)tabBarController:(UITabBarController *)tabBarController didSelectViewController:(UIViewController *)viewController{
    CATransition *transition;
    transition = [CATransition animation];
    transition.type = kCAGravityLeft;
    transition.duration = 1.25;
    [[[viewController view]layer]addAnimation:transition forKey:nil];
}

I put the quartzcore.framework in my project and i call it.我将quartzcore.framework 放在我的项目中并调用它。

My problem is that the app is launched but without the transition.我的问题是应用程序已启动但没有过渡。

Thanks谢谢

Take a look at this topic: iPhone UIView Animation Best Practice看看这个话题: iPhone UIView Animation 最佳实践

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM