LoginSignup
25
25

More than 5 years have passed since last update.

UITableViewを行単位で更新する

Last updated at Posted at 2013-03-02

UITableViewController等で「reloadRowsAtIndexPaths」を使う
withRowAnimationで更新時のアニメーションを設定

- (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath
{
    [self.tableView reloadRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:UITableViewRowAnimationLeft];
}
25
25
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
25
25