【发布时间】:2015-12-30 00:32:08
【问题描述】:
这段代码的问题(里面func tableView(tableView: UITableView, commitEditingStyle editingStyle: UITableViewCellEditingStyle, forRowAtIndexPath indexPath: NSIndexPath))
tableView.deleteRowsAtIndexPaths([indexPath], withRowAnimation: .Automatic)
if indexPath.row > 1{
tableView.reloadRowsAtIndexPaths([NSIndexPath(forRow: indexPath.row-1, inSection: 0)], withRowAnimation: .None)
}
if tDate[activeRow].count == 0{
tableView.reloadRowsAtIndexPaths([NSIndexPath(forRow: 0, inSection: 0)], withRowAnimation: .None)
}
是 reloadRowsAtIndexPaths 都是动画的,虽然 withRowAnimation: .None 是指定的。我在这里错过了什么?
【问题讨论】:
标签: uitableview swift2 xcode7