Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

swift uitableview cell spacing

// Inside UITableViewCell subclass
override func layoutSubviews() {    
    super.layoutSubviews()

    contentView.frame = contentView.frame.inset(by: UIEdgeInsets(top: 8, left: 8, bottom: 8, right: 8))
}
 
PREVIOUS NEXT
Tagged: #swift #uitableview #cell #spacing
ADD COMMENT
Topic
Name
3+2 =