Recipe: Table Edits

Bring your tables to life by adding editing features. Table edits transform a static information display into an interactive scrolling control that invites your user to add and remove data. Although the bookkeeping for working with table edits is moderately complex, the same techniques easily transfer from one app to another. Once you master the basic elements of entering and leaving edit mode and supporting undo, you can use these items over and over.

Recipe 9-3 introduces a table that responds meaningfully to table edits. This example creates a scrolling list of random images. Users create new cells by tapping Add and remove cells either by swiping or entering edit mode (by tapping Edit) and using the round red remove controls ...

Get The Core iOS Developer’s Cookbook, Fifth Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.