我创建了一个简单的表格视图并嵌入到导航控制器中。我已经为单元格选择了一种附件类型,并使用另一个视图控制器的segue来显示该单元格的细节。但附件没有显示。如果我使用此代码表格视图单元格的附件不在iOS 9和swift中显示
cell.accessoryType = UITableViewCellAccessoryType.DisclosureIndicator
然后附件显示,但继续不工作。
这是我的代码
func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell{
let cell = UITableViewCell(style: UITableViewCellStyle.Subtitle, reuseIdentifier: "Cell")
cell.textLabel?.text = "test"
// cell.accessoryType = UITableViewCellAccessoryType.DisclosureIndicator
return cell
}
请告诉我问题出在哪里。
请显示segue的代码。我也在下面添加了一个响应。 – penatheboss