Change duration of UITableView animation (Insert/Delete rows with table beginUpdates)

后端 未结 3 1631
闹比i
闹比i 2020-12-16 13:02

Is there a way to change the duration of [table beginUpdates]/[table endUpdates] animations?

This is what I\'ve tried, with no luck:

3条回答
  •  星月不相逢
    2020-12-16 13:29

    Why don't you try UIView animation.

    [UIView animateWithDuration:2 delay:0.2 options:UIViewAnimationOptionCurveEaseInEaseOut animations:^{
      [self.tableView beginUpdates];
      [self.tableView endUpdates];
    } completion:^(BOOL finished) {
      // code
    }];
    

提交回复
热议问题