-1

I want to start with a DetailViewController, not a Table View.

enter image description here

  1. So, first I create a Master-Detail Application.

enter image description here

  1. Then, I remove the Segue

enter image description here

  1. Control-drag from Nav Controller to Detail View Controller and select "root view controller"

enter image description here

  1. Nav is now directly connected to Detail View Controller

enter image description here

  1. unrecognized selector sent to instance

I'm confused because I've always done it like this in XCode5... And now it doesn't work anymore?? Some help is much appreciated guys :).

Update: When UNCHECKING Core Data at project creation, it doesn't happen. But I do need Core Data!!

Jim Clermonts
  • 1,694
  • 8
  • 39
  • 94
  • possible duplicate of [How can I debug 'unrecognized selector sent to instance' error](http://stackoverflow.com/questions/25853947/how-can-i-debug-unrecognized-selector-sent-to-instance-error) – Hot Licks Feb 04 '15 at 21:53

2 Answers2

0

It seems that someone is trying to call setManagedObjectContext on a DetailViewController instance and this method doesn't exist. Thus resulting in a runtime crash.

Nicolas B.
  • 1,318
  • 1
  • 11
  • 20
0

Had almost similar issue (With view controllers). If you have some view controllers with segues connected and data transfer happens in between. Make sure the data to the required view controller is set with the prepareForSegue separately for each destination view controller.

Tony
  • 53
  • 9