首页 > 其他 > 详细

日常杂记--2

时间:2018-01-10 10:43:59      阅读:182      评论:0      收藏:0      [点我收藏+]

1、view页面翻转

    UIViewAnimationOptions option = _isLeft?UIViewAnimationOptionTransitionFlipFromLeft:UIViewAnimationOptionTransitionFlipFromRight;

  // 法一

    [UIView transitionFromView:_view1 toView:_view2 duration:.35 options:option completion:nil];

   //法二

    [UIViewtransitionWithView:self.contentViewduration:.35options:option animations:^{

        [self.contentViewexchangeSubviewAtIndex:0withSubviewAtIndex:1];

    } completion:^(BOOL finished) {

    }];

    //法三

    [UIViewanimateWithDuration:.55animations:^{

        [UIViewsetAnimationTransition:UIViewAnimationTransitionFlipFromLeftforView:self.viewcache:YES];

    }];

日常杂记--2

原文:https://www.cnblogs.com/shizhiliblog/p/8256885.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!