Guest User

Untitled

a guest
Jun 25th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. self.tableView.contentInset = UIEdgeInsetsMake(0, 10, 0, 10);
  2.  
  3. import UIKit
  4.  
  5. class MyTableViewCell: UITableViewCell {
  6.  
  7. override func layoutSubviews() {
  8. super.layoutSubviews()
  9. contentView.frame = UIEdgeInsetsInsetRect(contentView.frame, UIEdgeInsetsMake(0, 16, 0, 16))
  10. }
  11. }
Add Comment
Please, Sign In to add comment