这看起来像一个基本的 IB 错误,但它并没有解决。
*** 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 不在 TrailersViewController 中,它在 TrailersViewController 上的另一个对象中。
myImageView 没有任何 IBOutlets。
第三,在推送视图控制器时似乎会遇到这个问题,但它的对象显示在子视图中。
myImageView 只是对象中的一个局部变量。
我也有这个工作,但注意到我的 TrailersViewController 相当泄漏,所以我正在重新组织它以阻止这些泄漏。
我现在不知所措,但我能进入的任何其他方向都会很棒。