首页 > 编程语言 > 详细

Swift开发教程--实现UITableView报错does not conform to protocol 'UITableViewDataSource‘

时间:2015-05-29 18:07:36      阅读:253      评论:0      收藏:0      [点我收藏+]

通过实践,要是把下面三个协议方法都实现了就不会报错了。另外还需要注意!的问题。

  func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int{
  }
  func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell{      
  }
    
  func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath){

        tableView.deselectRowAtIndexPath(indexPath, animated: true)

   } 

Swift开发教程--实现UITableView报错does not conform to protocol 'UITableViewDataSource‘

原文:http://blog.csdn.net/wanglixin1999/article/details/46238307

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!