LoginSignup
20
19

More than 5 years have passed since last update.

UITableViewでスクロールする時に、Cellを徐々に拡大して表示させる方法

Last updated at Posted at 2014-01-18

実装方法は単純です。cellが表示される直前に以下のアニメーションを定義するだけです。

- (void)tableView:(UITableView *)tableView
   willDisplayCell:(UITableViewCell *)cell
 forRowAtIndexPath:(NSIndexPath *)indexPath
{
    cell.transform = CGAffineTransformMakeScale(0.8, 0.8);
    [UIView animateWithDuration:0.5 animations:^{
        cell.transform = CGAffineTransformIdentity;
    }];
}

20
19
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
20
19