Am trying to downcast a view controller to a detail view controller but can\'t. Am using Core Data (for the first time). The error is in the prepareForSegue method and reads
Adding to matt answer. Sometimes, you may also need to double check the custom class Module from the Identity inspector.
Your view controller need to belong to a specific Module. So make sure to select a Module from the list. In my case:
Module