我为 UITableViewCell 使用了自定义类。看起来不错
但调试 View 层次结构单元格与上图重叠。
func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCellWithIdentifier(self.reuseIdentify, forIndexPath: indexPath) as! ContactViewCell
cell.lbContactName.text = self.dataSource[indexPath.row]
return cell
}
最佳答案
请检查自定义 UITableviewCell Clip Subviews 属性。
关于ios - swift : UITableViewCell Overlapping in debug view Hierarchy,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34194124/