uitableviewsectionheader Questions
12
Solved
Can someone please instruct me on the easiest way to change the font size for the text in a UITableView section header?
I have the section titles implemented using the following method:
- (NSStri...
Bonnie asked 6/11, 2013 at 1:22
5
Solved
I've got a basic UITableView with some cells. I'm using a SwiftUI View as content for both my cells and section headers. Strangely, only the section header that appears to touch the bottom of the s...
Pilatus asked 1/5, 2020 at 23:40
2
Does anyone know the meaning of this warning? I don't understand the problem it's describing. If I provided an estimated height when I shouldn't have, why is it a problem?
Here's some more info an...
Dorise asked 3/1, 2019 at 23:5
5
I want to detect when the UITableView section header snaps on top of the screen and then modify header's height, but I have no idea how to do that. Can anyone help?
Lakes asked 16/1, 2017 at 5:47
2
since iOS15 a strange top gap started to appear
after research i found out that
if #available(iOS 15, *) {
tableView.sectionHeaderTopPadding = 0
}
should solve the issue
however this works only ...
Verbify asked 8/10, 2021 at 14:41
16
I've set up the tableview with correct delegate and datasource linkages.. the reloadData method calls the datasource and the delegate methods except for viewForHeaderInSection:.
Why is that so?
...
Chiao asked 25/2, 2013 at 23:44
6
Solved
Here is what I have at the moment.
How do I refer to this so that I can change the text colour to match my index list? The sectionForSectionIndexTitle worked well for adding in the correct secti...
Erogenous asked 21/9, 2016 at 10:40
4
Solved
I'm trying to make section headers with autolayout.
A simple header with a title and a counter
class ProfilePeopleListHeaderViewCell: UIView {
let titleLeftOffset = 12
let counterRightOffset = ...
Paternalism asked 23/2, 2016 at 3:9
1
Solved
I'm implementing collapsable section headers in a UITableViewController.
Here's how I determine how many rows to show per section:
override func tableView(_ tableView: UITableView, numberOfRowsIn...
Mascon asked 3/10, 2019 at 19:29
6
I am running into an issue with automatic/dynamic UITableView section header views that contain a UILabel that wraps (numberOfLines = 0). The height is not being calculated properly, especially onc...
Bon asked 16/5, 2017 at 15:40
4
Solved
I am using CollapsibleTableView from here and modified it as per my requirement to achieve collapsible sections. Here is how it looks now.
Since there is a border for my section as per the UI des...
Priestcraft asked 23/6, 2017 at 10:0
3
I am using Xib files instead of storyboard. I have created a table view with some dummy data. Its working fine, Now I have created a custom cell with some labels and textFields. How can I use it as...
Kirit asked 1/7, 2016 at 7:43
2
I have floating headers for my UITableView (which I want). But it looks quite bad when the suggestion view for the UITextView in the cell above is under the header.
Seems like no one has had this ...
Cauvery asked 8/2, 2016 at 15:48
1
© 2022 - 2024 — McMap. All rights reserved.