You don't. Your detail view should be a generic, reusable object, that is passed the specific core data object when you initialise it.
When you select the cell, you will have its index path. The index path can be used to get the managed object, which is then passed to your detail view.
The detail view(controller) then makes any amendments to the passed in object.
This is covered in any master-detail tutorial you would find.