2014-09-01 117 views
0

只要有文本框,它已經上癮在廈門國際銀行&適當的類被分配給文件的所有者,但不斷收到Xcode6 Beta6:這個類不是鍵值編碼兼容的名爲「IBtextFieldName」關鍵

'NSUnknownKeyException', reason: '[<UIViewController 0x7fb9cc81acd0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key IBtextFieldName 

已經嘗試:

  • 清理生成,
  • 刪除導出的數據,
  • 打開XIB作爲源代碼和除去未所需的連接,
  • 刪除並重新創建的廈門國際銀行和相關.swift類文件,
  • 刪除並重新創建的UITextField,並用不同的名字插座,
  • 重啓動的Xcode
+0

檢查你的UIViewController的代碼和廈門國際銀行文件,也許,它們含有無效的連接 – 2014-09-01 12:55:28

+0

我已經證實,甚至還有在廈門國際銀行 – BaSha 2014-09-01 13:02:04

+0

與(!)標誌沒有丟失連接刪除IBtextFieldName參考xib並再次將它連接起來 – 2014-09-01 13:15:45

回答

1

解決:

是愚蠢的錯誤

正在使用,

let myController : MyController = UIViewController(nibName: "MyController", bundle: NSBundle.mainBundle()) as MyController 

代替

let myController : MyController = MyController(nibName: "MyController", bundle: NSBundle.mainBundle()) as MyController 
相關問題