ios - Set beginning of Separator Lines in UITableView? -


a uitableview has seperator lines shown in following image. not start @ beginning of row. see red box in image. want change start.

enter image description here

how can specify separator lines in table view begin?

add table view separator insets zero.

enter image description here

add code in cellforrowatindexpath:

if (cell.respondstoselector("preservessuperviewlayoutmargins")){     cell.layoutmargins = uiedgeinsetszero     cell.preservessuperviewlayoutmargins = false } 

see preview :

enter image description here


Comments

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -