LoginSignup
1
1

More than 3 years have passed since last update.

terminating with uncaught exception of type NSExceptionで@IBOutletは繋いでるのにミスってて詰まった[Swift]

Posted at

terminating with uncaught exception of type NSException
このエラー、いろんな原因があるらしいですが、初歩的なパターンだと
@IBOutlet繋いでなかった
@IBOutletそもそもちゃんと繋げてたけどつなぎ直したら何故か治った
というのも多かったですが、僕の場合は

繋いでたけど、その後に変数名変えてたから

でした。
Storyboard側のUIは最初に繋いだ変数名と紐づけようとするので
変数名変えたらちゃんとつなぎ直しましょう

1
1
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
1
1