关闭

UIView 页面跳转动画

145人阅读 评论(0) 收藏 举报
分类:

1.模态动画水平翻转  进入

   ShaijiaDetailController *shaijia =[[ShaijiaDetailController alloc]init];
    ShaiJiaModel *model =self.dataArr[indexPath.row];
    shaijia.group_id=model.group_id;
    
     shaijia.modalTransitionStyle=UIModalTransitionStyleFlipHorizontal;
    [self.view.window.rootViewController presentViewController:shaijia animated:self completion:nil];


模态动画水平翻转  退出


    [self dismissViewControllerAnimated:YES completion:nil];



2.波纹动画.跳转

 CATransition *anima = [CATransition animation];
    [anima setTimingFunction:[CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut]];
    anima.duration = 2;
    anima.type = @"rippleEffect";
    anima.subtype = @"90ccw";
    [self.navigationController.view.layer addAnimation:anima forKey:nil];
    
    DetailViewController *detail =[[DetailViewController alloc]init];
    TBFModel *model =self.dataArr[indexPath.row];
    detail.tid =model.tid;
    [self.navigationController pushViewController:detail animated:YES];






0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:26812次
    • 积分:504
    • 等级:
    • 排名:千里之外
    • 原创:9篇
    • 转载:95篇
    • 译文:0篇
    • 评论:0条
    文章分类