1

Xcode Workflow Preview

8:20FreeDone
2

Start Designing in Xcode

3:46FreeDone
3

Navigation Controllers and Prototyping

3:04FreeDone
4

Designing The Home Screen

3:14FreeDone
5

Creating Custom Classes

4:52FreeDone
6

Customizing The TableView

4:37FreeDone
7

Adding Logic To The Styling

3:29FreeDone
8

Custom Fonts

6:58FreeDone
9

Saving Variables and Triggering Alerts

6:40FreeDone
10

Integrating Pods In Your Xcode Project

2:24FreeDone
11

Recognizing Gestures on UI Elements

3:26FreeDone
12

Retrieving Data From an API

6:56FreeDone
13

Implementing a Custom Loading Animation

4:34FreeDone
14

Saving and Persisting User Data

3:11FreeDone
15

Encoding and Saving Complex Data

3:35FreeDone
16

Make UI Updates More Granular

2:22FreeDone
17

Refactoring Saved Locations

6:11FreeDone

Fine-Tuning TableView Interactions

2:29FreeDone
19

Comparing Custom Classes

3:42FreeDone
20

Make a Custom Popup UI

4:26FreeDone
21

Adding Actions to TableView Cells

3:27FreeDone

Fine-Tuning TableView Interactions

Published by Chris Slowik

Episode Notes

Extra tips from the author

Configuring Cell Delete

Deleting a cell from the list is pretty easy. To enable deletion of tableview cells, you just need to implement one function in the SavedLocationsVC:

override func tableView(_ tableView: UITableView, commit editingStyle: UITableViewCellEditingStyle, forRowAt indexPath: IndexPath) {
    // delete cell
    if editingStyle == .delete {
        savedLocations.remove(at: indexPath.row)
        tableView.reloadData()
    }
}

Upon adding that, you'll be able to swipe to delete. Basically the function checks that we're trying to delete the cell, then removes it from the array of saved locations. After doing so, reloading the table data visually removes it from the list.

The final step in this lesson is to remove the selection highlight from the tableview cells, since we'll be using selection (tap) as our action trigger.

Episode Topics: