iOS – setValue:forUndefinedKey problem on a subView-Collection of common programming errors
This looks like a basic IB error but it hasn’t worked out to be.
*** Terminating app due to uncaught execption 'NSUnknownKeyExecption', reason:'[ 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.