首页 > 其他 > 详细

以动画的形式让label等出现消失等

时间:2015-09-26 00:27:15      阅读:311      评论:0      收藏:0      [点我收藏+]

        [UIView animateWithDuration:1.0 animations:^{
            label.alpha=1.0;
        } completion:^(BOOL finished) {
            
            [UIView animateWithDuration:1.0 animations:^{
                label.alpha=0.0;
            } completion:^(BOOL finished) {
                
                [label removeFromSuperview];
                
            }];
        }];

/*

animateWithDuration:持续的时间

animations:^{} :在这个持续的时间内需要完成的事情

animations:^{}:事件完成后进行的操作

*/

 

以动画的形式让label等出现消失等

原文:http://www.cnblogs.com/wanghengheng/p/4839799.html

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