Search code examples
iosuitableviewios9

UITableview separator not hiding for iOS9


I have implemented UITableView with coding. I have also set UITableViewCellSeparatorStyleNone. It is hiding for iOS8 and below but not hiding with iOS9 Beta.


Solution

  • Please set the separator style to None in layoutSubviews method.

    When constraints-based layout is used the base implementation applies the constraints-based layout and setting separatorStyle to UITableViewCellSeparatorStyleNone in this method will hide the separator for you.