ios - swift : UITableViewCell Overlapping in debug view Hierarchy

标签 ios swift

Cells Overlapping

我为 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/

相关文章:

swift - 如何在 Swift 3 的 TableView Cell 中设置具有更高值 t 的右上角半径

ios - 本地通知声音在前台不起作用

ios - 使用 Storyboard时,操作系统何时设置 rootViewController?

ios - 无法在 uicollectionview 中显示 uimage 集

swift - NSWindow 标题栏不能全透明?

swift - 可以是非rootviewcontroller吗?

iphone - 使用 NSAttributedString 为 UILabel 设置突出显示的文本颜色。?

ios - 我怎么能从 js 世界传递 swift 自定义组件的属性

ios - 如何更改添加到 Storyboard 中的 UIView 的中心?

ios - 在 Swift 中将结构重构为枚举