码迷,mamicode.com
首页 > 移动开发 > 详细

iOS开发自定义试图切换

时间:2016-08-26 10:27:20      阅读:163      评论:0      收藏:0      [点我收藏+]

标签:

    CATransition *transition = [CATransition animation];
    transition.duration = 1.0f;
    transition.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut];
    transition.type = @"moveIn";
    transition.subtype = kCATransitionFromBottom;
    transition.delegate = self;
    [self.navigationController.view.layer addAnimation:transition forKey:nil];
    [self.navigationController pushViewController:photoWall animated:YES];

 

iOS开发自定义试图切换

标签:

原文地址:http://www.cnblogs.com/WJJ-Dream/p/5809167.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!