Telember Telember - 7 months ago 54
Swift Question

How to add vertical line between UITableViewCell IOS

In my project i have to add vertical lines but I don't know how to add a vertical line . I tried to add it into my

UITableView
but it can't.

Example

Answer

You can get this by using adding UIView to CustomCell like this..

enter image description here

in TableView Data Source Method cellForRowAtIndexPath, check for first cell & last Cell. if first cell then hide LineUpper & if Last cell Then hide LineLower..

That's it..

Hope this would solve your Problem. :)

Comments