2014-08-28 31 views
2

我遇到了使用this tutorial製作的應用程序的問題。Objective-C這個類不是關鍵值findContact的關鍵值編碼。

似乎一切都很好,但是當我建立,有一個錯誤:

2014-08-28 11:49:20.038 techtopiatut[1551:60b] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<ViewController 0x8c4dd00> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key findContact.' 

如果有人希望看到的項目,它是here

回答

1

這是因爲無效網點。

如果刪除saveData在這裏Referencing Outlets

enter image description here

Referencing Outlets刪除findContact這裏

enter image description here

+0

剛纔意識到引用不會神奇消失。謝謝! – 2014-08-28 10:25:42

+1

@AlanKałuża不客氣。將欣賞一個upvote。但我認爲拉沙德在時間上勝出了我的答案。你可能應該接受他的回答。 – 2014-08-28 10:30:29

3

你已經刪除了一些按鈕,但引用仍然存在。看到這一點:

enter image description here

轉到您的故事板,然後刪除黃標REF。這將工作。然後,它會是這樣的:

enter image description here

+0

真的很感謝你們!甚至不能贊成這一點。真的感謝。 – 2014-08-28 10:23:48

+1

@AlanKałuźa>雖然你可以接受我的回答。 ;) – Rashad 2014-08-28 10:25:41

1

我發現這個問題......你的按鈕SaveFind仍然引用您的FileOwner刪除提及和多數民衆贊成它...

欲瞭解更多詳情,請參閱圖像並點擊箭頭正好指向的x。繼續執行Save的練習。

enter image description here

+0

Thaths太棒了。感謝你的精確。謝謝。 – 2014-08-28 10:25:03

+1

@AlanKałuża,接受你認爲有用的答案。 – Goppinath 2014-08-28 10:28:00

相關問題