Skip to content

Instantly share code, notes, and snippets.

@iAmrSalman
Last active July 20, 2017 18:04
Show Gist options
  • Save iAmrSalman/64904cc73208f4cdad0b42dc985d2c91 to your computer and use it in GitHub Desktop.
Save iAmrSalman/64904cc73208f4cdad0b42dc985d2c91 to your computer and use it in GitHub Desktop.
[insert new cell into UITableView] #uitableview #swift3
Yourarray.append([labeltext])
tableView.beginUpdates()
tableView.insertRows(at: [IndexPath(row: yourArray.count-1, section: 0)], with: .automatic)
tableView.endUpdates()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment