func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
return 10
}
应该为 4,
下面只有4个row
switch indexPath.row {
case 0:
cell?.textLabel?.text = "username = \(self.person?.username)"
case 1:
cell?.textLabel?.text = "uid = \(self.person?.uid)"
case 2:
cell?.textLabel?.text = "name = \(self.person?.name)"
case 3:
cell?.textLabel?.text = "email = \(self.person?.email)"
default:
break
}