I would like to remove border bottom line of each Question table rows. Another thing is that I would like to remove the left padding space in each row. How to implement it in swift iOS 9.0 .
相关问题
- “Zero out” sensitive String data in Swift
- SwiftUI: UIImage (QRCode) does not load after call
- Get the NSRange for the visible text after scroll
- Custom UITableview cell accessibility not working
- UIPanGestureRecognizer is not working in iOS 13
相关文章
- UITableView dragging distance with UIRefreshContro
- Using if let syntax in switch statement
- Enum with associated value conforming to CaseItera
- Swift - hide pickerView after value selected
- Is there a Github markdown language identifier for
- Popover segue to static cell UITableView causes co
- How can I vertically align my status bar item text
- Adding TapGestureRecognizer to UILabel in Swift
Swift 4.2
Put below code into viewDidLoad
tableView.separatorStyle = UITableViewCell.SeparatorStyle.none
Another simple solution that worked for me for removing bottom lines (separators) just for empty rows - tested on Swift 4, Xcode 9 & iOS 11:
select tableview in storyboard and select seperator style to None
You can remove bottom border by writing this below line in viewdidLoad,
And Remove left padding by writing this in cellForRow,
Update for Swift 3.0:
I use the method below