本文主要是介绍iOS UITableView 删除Sections(),希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
{[self.bankTableView beginUpdates]; //开始编辑NSIndexPath *indexPath = [self.bankTableView indexPathForCell:cell]; 、、获取当前CELL[self.items removeObjectAtIndex:indexPath.section];NSMutableDictionary *param = [NSMutableDictionary dictionary];param[@"bankAccountId"] = @(bankAccountId);[SVProgressHUD show];[[ZCWHtppManager sharedManager]post:[NSString stringWithFormat:@"%@removeBankAccount",base_url] parameters:param completion:^(NSURLSessionDataTask *task, NSDictionary *dict, NSError *error) {[SVProgressHUD dismiss];if (!dict[@"1"]) {[SVProgressHUD showErrorWithStatus:@"删除失败"];}}];[self.bankTableView deleteSections:[NSIndexSet indexSetWithIndex:indexPath.section] withRowAnimation:UITableViewRowAnimationRight];[self.bankTableView reloadData];[self.bankTableView endUpdates];
这篇关于iOS UITableView 删除Sections()的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!