MyLocation Chapter 28

I deleted all the tagged location item in my simulator, then when I try to tag a new location and save it, the app crashed.


Does anyone know how to avoid unwrapping this nil optional?

For inserted rows, you use the newIndexPath parameter, not the indexPath parameter. So

      print("*** NSFetchedResultsChangeInsert (object)")
      tableView.insertRows(at: [newIndexPath!], with: .fade)

Thank you very much! How sloppy I was…

This topic was automatically closed after 166 days. New replies are no longer allowed.