Since iOS 15, UITableView
contains a new property called sectionHeaderTopPadding
which specifies the amount of padding above each section header.
tableView.sectionHeaderTopPadding = 0.0
Note: This applies only to the
UITableView.Style.plain
.
More Related Contents:
- Assertion failure in dequeueReusableCellWithIdentifier:forIndexPath:
- Why is there extra padding at the top of my UITableView with style UITableViewStyleGrouped in iOS7
- Any way to pre populate core data?
- Custom UITableViewCell from nib in Swift
- How do I catch “Index out of range” in Swift?
- Resizing UITableView to fit content
- Dismiss keyboard by touching background of UITableView
- How to detect the end of loading of UITableView
- Change Default Scrolling Behavior of UITableView Section Header
- How to make a push segue when a UITableViewCell is selected
- How to determine UIWebView height based on content, within a variable height UITableView?
- Get notified when UITableView has finished asking for data?
- Custom edit view in UITableViewCell while swipe left. Objective-C or Swift
- UITableView – change section header color
- UITableview: How to Disable Selection for Some Rows but Not Others
- Change the color of default red color delete button in UITableViewCell when swiping rows or click on edit button
- UITableView with static cells does not appear
- JSON parsing swift, array has no value outside NSURLSession
- NSIndexpath.item vs NSIndexpath.row
- Are there any advantages to using a UITableViewController over a UIViewController that implements tableview delegate and datasource methods? [closed]
- Pull to refresh UITableView without UITableViewController
- UITableViewCells with UIButton overlaps while scrolling
- If no Table View results, display “No Results” on screen
- UICollectionView update a single cell
- How to implement UISearchController in UITableView – Swift
- Trouble with AutoLayout on UITableViewCell
- Setting scroll position in UITableView
- Set UITableView’s height to the height of its content with Auto Layout
- Existing iOS form framework
- Want to create a cool static UI but : “Static table views are only valid…”