求助
xcode吧
全部回复
仅看楼主
level 1
ogaryo 楼主
/jxt-app-swift/jxt-app-swift/ViewController.swift:11:1: Type *ViewController* does not conform to protocol *UITableViewDataSource*
但是我已经有
func tableView(tableView: UITableView!, numberOfRowsInSection section: Int) -> Int {
return 10
}
func tableView(tableView: UITableView!, cellForRowAtIndexPath indexPath: NSIndexPath!)
-> UITableViewCell! {
let cell: UITableViewCell = UITableViewCell(style: UITableViewCellStyle.Subtitle,
reuseIdentifier: "MyTestCell")
cell.textLabel?.text = "Row #\(indexPath.row)"
cell.textLabel?.text = "Subtitle #\(indexPath.row)"
return cell
}
这两个方法了 怎么还是报错呢
2014年09月17日 13点09分 1
1