ios - Set beginning of Separator Lines in UITableView? -
this question has answer here:
a uitableview has seperator lines shown in following image. not start @ beginning of row. see red box in image. want change start.
how can specify separator lines in table view begin?
add table view separator insets zero.
add code in cellforrowatindexpath
:
if (cell.respondstoselector("preservessuperviewlayoutmargins")){ cell.layoutmargins = uiedgeinsetszero cell.preservessuperviewlayoutmargins = false }
see preview :
Comments
Post a Comment