Questions tagged [uitableviewsectionheader]
218 questions
0
votes
0 answers
Change button image added to UITableView header on UIControlEventTouchUpInside action
I have created one button with images for different states in UITableView header
-(UIView *) tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section
{
self.filterButton = [UIButton…

Ritika
- 593
- 1
- 8
- 21
0
votes
1 answer
Animation glitch when adding rows and UITableViewHeaderFooterView height is UITableViewAutomaticDimension
I am experiencing some animation glitches when insert new rows in a section and height for header is set to be UITableViewAutomaticDimension with an estimated height. Also, as you may notice, when deleting the rows the headers are jumping directly…

CRoig
- 691
- 5
- 24
0
votes
1 answer
Swift 3 UITableView sections showing after the list
I'm trying to create a list of products using swift 3 UITableViewController, but the sections is showing after the list of the products. There must be something I'm missing, couldn't find anywhere
Here is a simplified code
let data = [["0,0", "0,1",…

ericknmp
- 3
- 3
0
votes
1 answer
UITableviewCell row and header are two different array
I have two array. One for Tableview Header and another one for Tableview row. I want to display header wise values for different Rows. Number of sections are depend on that array which is used in Header view.
Number of rows is calculated tableview…

VivekBoom
- 33
- 1
- 5
0
votes
1 answer
Xcode 8: Adding UISearchBarController to UITableViewHeaderFooterView crash: nib must contain exactly one top level object
I am building my Section Header View in a XIB file:
It's a XIB file that consists of a UISearchBarController inside a UIView
I register it in viewDidLoad in a tableViewController:
tableView.register(UINib(nibName: "MessagesSH", bundle: nil),…

user1107173
- 10,334
- 16
- 72
- 117
0
votes
1 answer
GroupTable in ViewController with Swift 3
I put Table in my ViewController. I made GroupTable. So, I select the table and choose "Grouped" in style in Attribute Inspector.
var TableArray = [["Home","Apple","Orange","Pineapple"],["Flour","Cake Flour"]]
func…

May Phyu
- 895
- 3
- 23
- 47
0
votes
1 answer
Action affecting buttons in all TableView Headers
I am using a custom UITableViewHeaderFooterView for me TableView. I was trying to implement hiding and showing rows in a section(which I have working). I decided to add a button (>) to the section header so that I can rotate it when the section is…

Brian Benavides
- 5
- 4
0
votes
1 answer
All the section titles showing in one section
I have a grouped tableview and for some reason all the section titles display only in one section. So the result is that the titles are all on top of each other in section = 0. All of the other sections are blank.
I tried debugging and see that when…

Number45
- 139
- 3
- 9
0
votes
1 answer
Generate section headers from dictionary [Swift 3]
I have an array of dictionaries with the following type of structure (which is already sorted) :
[
[
"id": 1,
"name": "ItemA",
"url": "http://url.com"
],
[
"id": 32,
"name": "ItemB",
"url": "http://url.com"
],
...
]
Declared as an…

blackjak231
- 174
- 1
- 11
0
votes
1 answer
Collapsable Sections and Multiple Custom UITableViewCell for each Section
So I have been searching a lot and couldn't find an appropriate answer to my question, i.e. Consider a tableview which needs to have collapsable Section Headers. When the TableView appears the Section Headers are all collapsed. When tapped on one of…

Mohsin Khubaib Ahmed
- 1,008
- 16
- 32
0
votes
1 answer
UITableView headerView not showing
I am using UITableViewdemo, I implemented heightForHeaderInSection and viewForHeaderInSection, but HeaderView is not visible.

user2206123
- 1
- 1
0
votes
1 answer
UITableView Sections are not scrolling to top after ContentInset set
I created a UITableView with ContentInset of 75.
In UITableView, I set a section view with height 30
Now when I scroll the UITableView, section is fixed at 75, not scrolls along with table cells, How can I make it scroll beyond the contentInset…

anjnkmr
- 838
- 15
- 37
0
votes
1 answer
Passing on tableview section title to another view's navigation bar title
I have a main view (view1) with this below code. When I tap a cell in a section, it will push to another view (view2) and I want to have that view2's title to be the same as view1's section title that I tap on.
view1
- (UIView…

SanitLee
- 1,253
- 1
- 12
- 29
0
votes
0 answers
what is the relationship between TableViewHeaderFooterView and TableView
How to assign a viewController was the delegate to a custom UITableViewHeaderFooterView?
In file TableViewHeaderFooterView.swift
I tried:
self.delegate = self.parentviewcontroller
but apparently the relationship of TableViewHeaderFooterView and…

Lingzt
- 33
- 5
0
votes
1 answer
Make 2 UITableView headers share the same image
I have 1 UITableView with 2 sections. I did 2 headers, the first one is a picture with a blurred background of the same picture and the second is a `UISegmentedControl'.
I need the UISegmentedControl to always be visible so I fulfilled the second…

Bryan ORTIZ
- 306
- 3
- 17