O'Reilly logo

iOS Programming Cookbook by Hossam Ghareeb

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Editing table views

Table views are not meant only for displaying data (read-only); users can be engaged in managing the table views to insert, update, delete, and reorder the table view cells. Thanks to UITableView, these kinds of operations are not difficult to implement and with just simple lines of code, you can bring all these awesome features to your app. In this section, we will see how to trigger the editing mode in table view to delete or reorder cells. We will see how to insert new rows at runtime to the table view with animations as well.

Getting ready

In the demo project that we will implement, we are building a simple Todo app. We will have a screen where the user can see a list of open tasks and options to add new tasks, delete specific ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required