简体   繁体   English

'ViewController'不符合协议

[英]'ViewController' does not conform to protocol

I was learning from techotopia.com tutorial. 我正在从techotopia.com教程中学习。 I have copied all code from there, and I have an problem "Type 'ViewController' does not conform to protocol 'UITableViewDataSource'". 我从那里复制了所有代码,并且遇到了一个问题“类型'ViewController'不符合协议'UITableViewDataSource'”。

Code and errors are on this screenshot 代码和错误在此屏幕截图上

There was a problem like this on stackoverflow, but in that case the problem was a typo, so I dare to ask. 在stackoverflow上有这样的问题,但是在那种情况下,这个问题是错字,所以我敢问。

You are not finished implementing the required methods for the TableViewDataSource protocol. 您尚未完成实现TableViewDataSource协议所需的方法。 You should probably go on with the tutorial until you implemented the cellForRow method 在实现cellForRow方法之前,您可能应该继续学习本教程。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 ViewController不符合协议“ UISearchResultsUpdating” - ViewController does not conform to protocol 'UISearchResultsUpdating' 类型“ ViewController”不符合协议 - Type 'ViewController' does not conform to protocol ViewController不符合Swift上的协议 - ViewController does not conform to protocol on Swift ViewController 不符合协议“GIDSignInDelegate” - ViewController does not conform to protocol 'GIDSignInDelegate' ViewController不符合协议UITableViewDataSource - ViewController does not conform to protocol UITableViewDataSource Swift:类型'ViewController'不符合协议'UIPageViewControllerDataSource' - Swift: Type 'ViewController' does not conform to protocol 'UIPageViewControllerDataSource' 类型“ viewController”不符合协议“ PathMenuDelegate” - type “viewController” does not conform protocol “PathMenuDelegate” 类型的viewcontroller不符合协议uitableviewdatasource - type viewcontroller does not conform to protocol uitableviewdatasource 类型“ ViewController”不符合协议“ FBSDKLoginButtonDelegate” - The type 'ViewController' does not conform to protocol 'FBSDKLoginButtonDelegate' ViewController类型不符合协议SKPaymentTransactiionObserver - type ViewController does not conform to protocol SKPaymentTransactiionObserver
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM