UITableViewCell Separator disappearing in iOS7

前端 未结 30 786
轮回少年
轮回少年 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:07

    to expand on airpaulg answer, because it didn't entirely work for me..

    i had to also implement the heightforfooter method to get the height

    then i noticed the lightgraycolor is too dark. i fixed this by grabbing the current separator color of the tableview and using that:

    UIColor *separatorGray = [self.briefcaseTableView separatorColor]; [footerSeparator setBackgroundColor:separatorGray];

提交回复
热议问题