UITableViewCell Separator disappearing in iOS7

前端 未结 30 770
轮回少年
轮回少年 2020-12-07 08:31

I have some strange issue with UITableView only in iOS 7.

UITableViewCellSeparator disappears above the first row and below the last row. S

30条回答
  •  悲&欢浪女
    2020-12-07 09:04

    This fixed the issue for me:

    Make sure clipsToBounds is set to YES for the cell, but NO for the cell's contentView. Also set cell.contentView.backgroundColor = [UIColor clearColor];

提交回复
热议问题