Bảo Kool Bảo Kool - 2 years ago 212
iOS Question

Margin space UITableView (Swift)

I want to show margin space left and right in UITableView look like images. I used

Xcode 7.3.1
and deployment target is 7.0. Please help me! Thanks very much.


Answer Source

You have to add one UIView into cell's contentview and than give constraints to it like below ...

enter image description here

Note: Don't forget to add background color to cell's contentview to see the effect.

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