Telember Telember - 2 years ago 183
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.


Answer Source

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download