候选人有不匹配的typesUITableView?

Xcode说,“候选人有不匹配的typesUITableView …..”任何人都知道如何解决这个问题?

func tableView(tableView: UITableView?, numberOfRowsInSection section: Int) -> Int { return dataSource[section].count } func tableView(tableView: UITableView?, cellForRowAtIndexPath indexPath: NSIndexPath!) -> UITableViewCell? { let cell = tableView!.dequeueReusableCellWithIdentifier("cell", forIndexPath: indexPath) as UITableViewCell if let path = indexPath{ let currentString = dataSource[path.section][path.row] cell.textLabel?.text = currentString } return cell } 

function签名已更改。 你需要更新到这些:

 func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int { 

 func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {