//UITableView的ADD
// NSString *name = @"new";
//NSInteger section = indexPath.section;
NSMutableArray *newArray = [dataArray objectAtIndex:indexPath.section];
[newArray addObject:dataArray [indexPath.section] [indexPath.row]];
//NSInteger row = newArray.count - 1;
NSIndexPath *path = [NSIndexPath indexPathForRow:newArray.count- 1 inSection:indexPath.section];
[tableView insertRowsAtIndexPaths:@[path] withRowAnimation:UITableViewRowAnimationFade];
//UITableView的DELETE
NSMutableArray *lastArray =dataArray[indexPath.section];
if(lastArray.count> 0) {
[lastArray removeObjectAtIndex:indexPath.row];
}
[tableView reloadData];
设置自动滚动
NSIndexPath path = [NSIndexPath indexPathForRow:dataArray.count- 1 inSection:0];
[tables crollToRowAtIndexPath:path atScrollPosition:UITableViewScrollPositionBottom animated:YES];