LoginSignup
5
5

More than 5 years have passed since last update.

iPhoneアプリのTableView表示で「unrecognized selector sent to instance」のエラーが発生する

Posted at

これはmain.storyboardでdataSourceとdelegateの接続先をViewにしてしまうと発生するエラー。
接続先をViewControllerにすることで解決。

一番左側のリストのViewController.swiftに対してではなく、画面デザインからリスト表示になっているところの上の方にあるView Controller Sceneの下のView Controllerに対してControl+ドラッグ&ドロップで接続する。

5
5
1

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