Questions tagged [uitableviewsectionheader]
218 questions
0
votes
1 answer
update section background colour without refreshing the whole UITableView
I have a UIViewController which has a UITableView and a button called "A" . This table has sections and rows. Now in my scenario i want to highlight a section when "A" clicked. I don't want to do this work in viewForHeaderInSection as i don't want…

neena
- 365
- 1
- 6
- 22
0
votes
2 answers
tableHeaderView' height is changed automatically after pushing a new viewcontrolller and come back
A header View is set to a tableView and the header View is an xib file using auto layout. When clicking a tableView cell and push another tableViewController ,then click back button to pop the tableViewController .However the headerView's height is…

Yung
- 3
- 4
0
votes
1 answer
Section header titles messed up
I have a table view controller with sections. The section title normally appear as such:
However, sometimes they get messed up - duplicated, overlaid on top of a table cell:
I can't figure out exactly when it's happening other than it seems to…

Daniel
- 3,758
- 3
- 22
- 43
0
votes
2 answers
UITableView rows sliding under UITableViewHeaderSection
I have a UITableView populating this sample Dictionary.
var WholeDict = [
"Animals" : ["Cat","Dog"],
"Fruits" : ["Apple","Orange"]
]
The content is too small. So I am choosing the grouped UITableView style, so that I can avoid the unwanted…

iOSMAn
- 46
- 1
- 14
0
votes
1 answer
Adding sub view to UITableViewHeader getting wrong width?
First I build a view add to tableview as tableHeaderView
UIView *mainHeaderView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, 300)];
[self.mainViewTableView setTableHeaderView:mainHeaderView];
I could adjust the…

Yan Li
- 1,699
- 2
- 16
- 25
0
votes
1 answer
Cannot subscript a value of type '[Array]' with index of type '(section)'. Type' (aka 'section.Type')
I am trying to create a TableView with two headers (Account,Support)
and with text titles in sections.But I am getting errors
I followed answer from this question: How do I populate two sections in a tableview with two different arrays using…

0ndre_
- 3,577
- 6
- 26
- 44
0
votes
4 answers
change uitableview footer dynamically
I have a custom UITableViewCell that I am using as footer for UITableView.
func tableView(tableView: UITableView, viewForFooterInSection section: Int) -> UIView? {
let cell = tableView.dequeueReusableCellWithIdentifier("footerCommentCell") as!…

Pavel Zagorskyy
- 443
- 1
- 4
- 20
0
votes
1 answer
Error in UITableView Section Header
I have an ios app written in swift. I am trying to make an input form using Eureka. So first I copied its example code into my FormViewController. The code is exactly same of RowsExampleViewController in the example code. The resultant output is…

Vishal
- 467
- 1
- 8
- 17
0
votes
1 answer
How to make the section header of a UITableView completely transparent
I have a UIViewController with a UIImage as the entire background image. I put a UITableView into my view controller and constraint it to the bottom, leading, trailing and half the height.
The goal is to make the Section Header of the table view be…

Anish Kumar
- 1,465
- 16
- 20
-1
votes
1 answer
Same RGB but different color for cell, header background in TableView
I have a headerView for a cell and a cell containing a collectionView. I wish to make both have a background color of
UIColor(red: 0.898, green: 0.898, blue: 0.898, alpha: 1.0)
I set both headerView's background color and the cell and its…

infiniteObj
- 97
- 7
-1
votes
1 answer
UITableViewSections from Array of Objects
i'm trying to achieve the following. i'm mapping an xml string into a tableview. This part is working fine, however i want to make sections in the tableview as well. I need the LINENAME to be the SectionName and the NODENAMES should be underneath…

patrickb100
- 51
- 5
-1
votes
1 answer
How to click on a button in a custom table header and have a row added under the section the button was clicked in?
Basically I have a tableview with a custom header for different sections. In the custom cell what I use for the headers I have a button. When that button is clicked I want to add a row under the section for which the button was clicked in. Any…

hvlegacy
- 3
- 2
-1
votes
1 answer
Swift - how to make custom header sections for UITableView using enum?
Hi guys inside my tableView class i have following enum
enum tabelSecion {
case action
case drama
case comedy
}
i need to use this enum to have 3 different section header. also i created a nib to represents a custom sectionHeaderCell…

David Harinson
- 39
- 1
- 6
-1
votes
1 answer
Is it possible to achieve expandable table header view?
I have implemented table view with expandable section i.e. the section user choose will have number of items for that particular category. For closed section there will be 0 items.
Now for better UI purpose, I want to achieve following type of…

NSPratik
- 4,714
- 7
- 51
- 81
-1
votes
1 answer
UITableViewHeaderFooterView width issue on iOS 9
I have created a custom tableView header by subclassing UITableViewHeaderFooterView, its working fine on iOS 10 and later version but on iOS 9 the width is not adjusting with the tableView bounds. Steps I have used:- New File > CocoaTouchClass >…

Kunal Kumar
- 1,722
- 1
- 17
- 32