首页 > 移动平台 > 详细

iOS UIView动画效果 学习笔记

时间:2016-04-07 20:17:11      阅读:205      评论:0      收藏:0      [点我收藏+]

 

 

CGRect frame = _confirmV.frame;
    [UIView beginAnimations:nil context:nil];//动画定义开始
    [UIView setAnimationDuration:0.5];//动画的时长
    [UIView setAnimationDelay:0];
    [UIView setAnimationDelegate:self];
    [UIView setAnimationDidStopSelector:@selector(removeConfirmView)];//动画完成时执行的SEL,必须设置delegate

    frame.origin.y += HEIGHT(self.view);//这三句就是要执行的动画语句
    targetView.frame = frame;
    targetView.alpha -= 0.1;

    [UIView commitAnimations];//动画定义结尾

 

详细可参考:http://www.tuicool.com/articles/BjMrQne

iOS UIView动画效果 学习笔记

原文:http://www.cnblogs.com/ficow/p/5364895.html

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