最初に各行にアニメーションを追加するにはどうすればよいUITableView
ですか? すべての行に左から右、または右から左へのアニメーション効果が必要です。
期待される効果が得られない関連コード:
float originalY = cell.frame.origin.y;
float originalH = cell.bounds.size.height;
[UITableViewCell animateWithDuration:1.0f delay:0.0f options:UIViewRowAnimationLeft animations:^{
cell.frame = CGRectMake(cell.frame.origin.x, (originalY + originalH), cell.bounds.size.width, 0);
}completion:^(BOOL finished) {
NSLog(@"Animation is complete");
}];