2016-11-15 103 views
1

當我嘗試從代碼故事板初始化控制器是否我有一個錯誤:「「[<UIProxyObject>的setValue:forUndefinedKey:]:這個類不是密鑰值用於密鑰containerView兼容編碼-

Missing proxy for identifier UpstreamPlaceholder-Kat-VH-9Yv. 
*** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIProxyObject 0x7fad23db07f0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key containerView". 

我已經在故事板文件,並刪除重新創建我containerView與所有連接&對象,但它並沒有幫助。我也嘗試從模擬器,模擬器變化,清潔項目中刪除APP和重新啓動的Xcode(8.0)。

+0

使用⇧⌘F搜索'containerView'。 Interface Builder中可能有一個死鎖連接。 – vadian

+0

已經在刪除'containerView'時執行了 –

回答

1

檢查您是否使用故事板參考

如果 - 刪除它們並使用代碼中的推/存在。

我已經有類似的情況,引用是崩潰的原因。我不知道爲什麼,但有時將它們添加到一個地方可能會導致另一個地方崩潰而沒有任何連接。只有使用逐步恢復,我發現一個原因

相關問題