エントリーの編集
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
Swift エラー Type 'ViewController' does not conform to protocol 'UITableViewDataSource'
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
Swift エラー Type 'ViewController' does not conform to protocol 'UITableViewDataSource'
ViewController に、UITableView を追加した場合 下記のように、スーパークラスを定義する class ViewCo... ViewController に、UITableView を追加した場合 下記のように、スーパークラスを定義する class ViewController: UIViewController, UITableViewDelegate, UITableViewDataSource { ここで Type 'ViewController' does not conform to protocol 'UITableViewDataSource' こんなエラーが出て少し嵌ったのでメモ 下記のような必要なメソッドを定義するとエラーは解消される func numberOfSectionsInTableView(tableView: UITableView) -> Int { func tableView(tableView: UITableView, numberOfRowsInSection sect

