Reputation: 3959
This looks like a basic IB error but it hasn't worked out to be.
*** Terminating app due to uncaught execption 'NSUnknownKeyExecption', reason:'[<TrailersViewController 0x585e8e0> setValue:forUndfinedKey:]: this class is not key value coding-compliant for the key myImageView.'
myImageView isn't in TrailersViewController it's in another object that is on TrailersViewController.
myImageView does not have any IBOutlets.
Third it seems that you can have this problem when pushing view controllers but it's object is shown in a subview.
myImageView is just a local variable in the object.
Also I had this working but noticed my TrailersViewController was rather leaky so I'm re-organizing it to stop those leaks.
I'm at a loss at the moment but any other directions I could head in would be awesome.
Upvotes: 0
Views: 1792
Reputation: 12366
It seems like you have associated the myImageView view in the nib to a @property IBOutlet called myImageView inside TrailersViewController, but you have forgot to @synthesize this property. So when the runtime tries to assign the myImageView object loaded from nib to the myImageView instance using key-value approach it doesn't find the setter method has you didn't synthesize it.
Upvotes: 2