当右箭头没有显示在我的单元格中

这是我的故事板显示

在这里输入图像说明

但是,当我在模拟器上运行时,右箭头不存在

在这里输入图像说明

我不知道为什么,也不知道我应该给你看什么代码,因为我实际上并没有自己制作这个箭头,我只是select了单元的accessory作为Discolosure Indicator

更新1

没有重叠,这是从debugging器:

在这里输入图像说明

问题是你实现了layoutSubviews ,但从来没有调用super.layoutSubviews() 。 因此,披露指标从未布局。

尝试添加这个你的tableview方法

 cell.accessoryType = UITableViewCellAccessoryType.DisclosureIndicator 

//完整的代码

 func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell{ let cell = UITableViewCell(style: UITableViewCellStyle.Default, reuseIdentifier: "Cell") cell.accessoryType = UITableViewCellAccessoryType.DisclosureIndicator return cell } 

尝试以编程方式在cellForRowAtIndexPath中添加披露指标:

 override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell { ... cell.accessoryType = UITableViewCellAccessoryType.DisclosureIndicator ... } 

尝试在助理编辑器中使用预览。 最有可能的一个图像重叠的指标,你需要调整你的约束。