ITeye博客

ios 动画

修博龙泉 · 2012-12-14 13:36 · ios开发学习相关 · 移动开发 · Markdown


//开启动画效果代码
    [uiview animatewithduration:2 animations:^{
        //动画
    } completion:^(bool finish){
        //最后位置
        self.searchtext.frame = CGRectMake (0,100,200,31);
    }];


//长按闪动效果


 [uiview animatewithduration:0.3 
                          delay:0 
                        options:uiviewanimationoptionallowuserinteraction 
                     animations:^{
                         cell.contentview.backgroundcolor = [UIColor orangeColor];
                         cell.contentView.layer.shadowOpacity = 0.7;
                     } 
                     completion:nil
     ];
[uiview animatewithduration:0.3 
                          delay:0 
                        options:uiviewanimationoptionallowuserinteraction 
                     animations:^{  
                         cell.contentview.backgroundcolor = [UIColor redColor];
                         cell.contentView.layer.shadowOpacity = 0;
                     }
                     completion:nil
     ];

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。