NouNou
NouNou

Reputation: 185

draw a line in UItableViewCell

Is there a way to draw a vertical line in uitableviewcell like the picture below ?

enter image description here

Upvotes: 0

Views: 549

Answers (2)

jrturton
jrturton

Reputation: 119292

Either set a custom view as the background view of the cell and draw the lines in code in your drawRect, or add 1 pixel wide views as subviews to your cell, with the background colour set to your desired line colour.

Upvotes: 2

Jesse Rusak
Jesse Rusak

Reputation: 57188

Thats probably part of the background image of the cell. You could also use a 1-pixel-wide view.

Upvotes: 2

Related Questions