Group Group Group Group Group Group Group Group Group

raywenderlich.com Forums

Storyboards Tutorial for iOS: Part 2

In this tutorial, you'll learn about storyboards, segues, static cells and a handy new item called storyboard references.


This is a companion discussion topic for the original entry at https://www.raywenderlich.com/462-storyboards-tutorial-for-ios-part-2

Can you give more information how to delete game? Like slide left and press red button “delete”

I made it:
Open GamePickerViewController.swift and

override func tableView(_ tableView: UITableView,
                        commit editingStyle: UITableViewCellEditingStyle,
                        forRowAt indexPath: IndexPath) {
   games.remove(at: indexPath.row)

    let indexPaths = [indexPath]
    tableView.deleteRows(at: indexPaths, with: .automatic)
}

This tutorial is more than six months old so questions are no longer supported at the moment for it. Thank you!