通过实践,要是把下面三个协议方法都实现了就不会报错了。另外还需要注意!的问题。
func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int{tableView.deselectRowAtIndexPath(indexPath, animated: true)
}
Swift开发教程--实现UITableView报错does not conform to protocol 'UITableViewDataSource‘
原文:http://blog.csdn.net/wanglixin1999/article/details/46238307