UIView.animateWithDuration(0, animations: {
// ...Change tableView height...
}) {
if $0 {
tableView.deleteRowsAtIndexPaths([NSIndexPath(forRow: indexPath.row, inSection: indexPath.section)], withRowAnimation: .None)
// Or insert...
tableView.insertRowsAtIndexPaths([NSIndexPath(forRow: 0, inSection: indexPath.section)], withRowAnimation: .None)
}
}