88
52

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

swift初心者:「this class is not key value coding-compliant for the key」の対処方法

Last updated at Posted at 2018-02-04

#はじめに
初歩的なエラーかと思いますが、初心者のため記録として残したいと思います。

#this class is not key value coding-compliant for the key
this class is not key value coding-compliant for the key
上記エラーはStoryboardの接続が芳しくないときに発生するエラーです。
StoryboardからIBOutletやIBActionを以下のようにhogeContorollerに接続した後、

hogeContoroller
@IBOutlet weak var titleTextField: UITextField!
@IBAction weak var titleTextField: UITextField!

の削除を試みた際にhogeControllerのみ@IBOutlet@IBAction接続を削除してしまうと発生します。
必ずcontrollerのみでなく、Storyboardの
Show the Connections inspecter上からも接続を解除するようにしましょう。

スクリーンショット 2018-02-04 16.22.34.png
88
52
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
88
52

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?