6
6

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でのエラー、Type ‘ViewController’ does not conform to protocol ‘UITableViewDataSource’

Posted at

Swiftでのエラー、Type ‘ViewController’ does not conform to protocol ‘UITableViewDataSource’の解決方法です

Swiftで、TableViewControllerを利用して、新しく対応クラスを作成し、編集して行く時ですが、
デフォルトで組み込んである、2つのメソッドを正しく書かないと、このエラーが出ます

ここまではいろんなサイトに書いてあります

が、

その後の細かい注意点が、ほとんど日本語情報がないので書いておきます

「コピペだと上手くいきません 直打ちで打ち直して、出てくる候補をクリックして、きちんと打ち直してください」

以上です

おそらく必須メゾットに関しては、細かい察知機能があるんじゃないでしょうかね

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?