Swift - How to create UITableView programmatically, insert and delete rows with animation

Profile Picture
Published on Feb 24, 2016🌏 Public

In this tutorial, we will look at how to easily create UITableView programmatically using UITableViewController as our root view controller. We then register our cell and header classes in code, returning them with our UITableViewDatasource and UITableViewDelegate methods. Finally, we move onto how to perform cell deletion and insertion with animation using insertRowsAtIndexPaths and deleteRowsAtIndexPaths. Completed project: https://github.com/purelyswift/uitabl...