Questions tagged [uitableviewsectionheader]
218 questions
1
vote
3 answers
Refresh UITableView without refresh section header
I have UITableview With a section header. When the section header is sticky to the top of the View, I would like to refresh the data source of the table view, but I do not want the section header to be refreshed. Because of the section header has…

benoitcn
- 149
- 1
- 12
1
vote
1 answer
How to refresh single section header's text in UITableView
I'm using a table view to display a checklist. Some views group list items by type. For these I display the type name with the item count in parentheses (e.g. "Things to do today (58)").
I want to refresh that string to reflect the updated count…

jaclyn
- 21
- 4
1
vote
0 answers
Change the Height of HeaderView inside tableviewSection with Animation + UIStackView
I have an one Tableview. inside tableview at i insert a stack view which contain the 2 view(Blue and Gray) with FillEqually. now i face the issue while hide a one view(Blue). the another view(Gray) take place of it and make it bigger. the height of…

Pushp
- 1,064
- 10
- 18
1
vote
1 answer
How to add selected indexes of tableview sections to an array
I have a tableView with section headers and I want to append a certain user input to multiple selected headers. I have created the section headers and am able to change the image on the section header to show that it is selected but I want to create…

joker449
- 109
- 1
- 9
1
vote
0 answers
How to hide the cells under the table view section header?
I have a plain table view , the table view section header's background color is clear , is there any way to hide the cells under the section while scrolling ?
Please see the image below :
Here is the viewForHeaderInSection implementation :
func…

ghadeer aqraa
- 159
- 2
- 11
1
vote
0 answers
Why hiding one header section when click on button
I have one UITableView and it has also header section. Based on header section they have correspondent data.
Each header section have one button which is clickable as user will
click on it it will expend the UITableView
I am using below code…

Sanjay Mishra
- 672
- 7
- 17
1
vote
1 answer
UITableView Header section height is not adjusted automatically for a Custom UIView() class
I am having UIView() class where I am adding a label programatically and also given constraints to automatically adjust height of view based on content. I have used this class as HeaderView for a UItableView section. But the problem here is the…

Hyder
- 139
- 1
- 10
1
vote
1 answer
UITableView Table Header pulled down when collapsing collapsible section headers
I have a collapsible header for uitableview sections based on another stack overflow post (no idea where now, as that was months ago). As it happens, the testers found a weird bug where collapsing all of the sections pulls the table header view…

Andrew Kinnie
- 277
- 6
- 17
1
vote
1 answer
How to return dynamic numberOfItemsInSection in UICollectionview
I have viewForHeaderInSection in UITableView based on viewForHeaderInSection data each UITableviewCell have UICollectionView in UICollectionViewCell I have to show data for "product" and "qty" the count of each "product" and "qty" is different for…

Sanjay Mishra
- 672
- 7
- 17
1
vote
0 answers
nested sections in the tableview in swift
{
"data":[
{
"mainquestion":"was the staff",
"items":[
{
"button_type":"2",
"question": "Gender",
"options": ["Male","Female"]
…

clydececiljohn
- 27
- 8
1
vote
2 answers
How to add two UIButtons in Tableview section header
I added custom tableview header with two buttons, but buttons are disabled , unable to make control events. i want to get layout like this. i'm new to development. any suggestions or solution
i tried to add view with buttons inside view in…

Suresh Mopidevi
- 919
- 3
- 9
- 24
1
vote
2 answers
Hide a section / space between sections in UITableView
Under some circumstances I want to hide a section of an UITableView.
I’ve solved this by returning 0 rows for the section and nil for the section title.
After that the section is empty / not visible, but there’s a bigger gap than usual between the…

ixany
- 5,433
- 9
- 41
- 65
1
vote
2 answers
Swift UITableView (no sections) filter to table view with sections
I have a list of custom objects [Species] displayed in the table view, which is sorted alphabetically. Table has one section with no headers, it's one continuous list.
What I would like to achieve is, when a user selects the option to sort the data…

Alessign
- 768
- 9
- 17
1
vote
0 answers
UITableview sticky header not properly rendered on iPhone X
I've got a sticky header in the UITableView, which works well on all devices, except on the iPhone X. On there the top margin (-24) won't be initiated on first render, only when I start scrolling it snaps into place like it should.
Here is the…

esteemedparomomycin
- 183
- 1
- 11
1
vote
2 answers
UITableView - adjustsFontSizeToFitWidth in sectionHeader
I've created a custom sectionHeader for my UITableview.
Sometimes I have to fill it with large text, so I added adjustsFontSizeToFitWidth = true which normally works.
In this case the font is not resized when it is to large. Does anyone have an…

Fabian Gr
- 215
- 1
- 12