UITableView Separator line

Mobile Developer iOS Android picture Mobile Developer iOS Android · Jan 26, 2011 · Viewed 166k times · Source

How can I change the separator line that appears at the end of each cell in UITableView? I want to have an image that is a thin separator type line image.

Answer

Felix picture Felix · Jan 26, 2011

Set the separatorStyle of the tableview to UITableViewCellSeparatorStyleNone. Add your separator image as subview to each cell and set the frame properly.