ios 动画
//开启动画效果代码
[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
];