Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 850
Piyush Hirpara Avatar asked Jul 15 '15 11:07

Piyush Hirpara


1 Answers

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.

like image 188
Dhvani Puar Avatar answered Oct 10 '22 06:10

Dhvani Puar