Telember Telember - 5 months ago 46x
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

but it can't.



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. :)