Weitere ähnliche Inhalte
Kürzlich hochgeladen (10)
Uiviewanimation
- 10. UIViewAnimation
//アニメーション前
cell.alpha = 0.0f;
// 5度回転
cell.transform = CGAffineTransformMakeRotation(-2*M_PI*5/360.0);
//開始位置の変更
cell.frame = CGRectMake(開始位置);
[UIView animateWithDuration:1.0
delay:0
options:UIViewAnimationOptionAllowUserInteraction
animations:^{
//アニメーション後
cell.frame = アニメーション終了先
// 回転を0度に
cell.transform = CGAffineTransformMakeRotation(0.0);
// アルファ値を1に
cell.alpha = 1.0f;
} completion:^(BOOL finished) {
//終わってからの処理
NSLog(@"end");
}];