Questions tagged [uitableviewsectionheader]

218 questions
0
votes
1 answer

Updating the background colour of UITableView section header

In my App, I let users change the main theme colour and then UI elements are updated accordingly. I have a Navigation Controller, which is embedded into a Tab Bar Controller. The App has two tabs, main screen (which has the Navigation controller)…
fnisi
  • 1,181
  • 1
  • 14
  • 24
0
votes
1 answer

viewForHeaderInSection not getting called on reloadData

viewForHeaderInSection is not getting called on reloadData. How ever it is getting called first time when the view is loaded. Very strange. Any help?I've implemented the below delegate methods. -(NSInteger)numberOfSectionsInTableView:(UITableView…
0
votes
3 answers

How to add data dynamically to UITableView when tapped on section headers

I am facing an issue with loading data into UITableView sections dynamically. My business requirement is I have a ViewController named "Courses", in this view I have a tableView with different sections for which I used TableViewHeaderFooterView, for…
0
votes
1 answer

Changing the title of the table when an spesefic that changes in table in Swift

I have a table view which I populate it with the data that I receive from the database. There is an element in my table which is the Date that data added to the database and I'm showing it. All the data are sorted in order of the date in the…
Am1rFT
  • 227
  • 5
  • 18
0
votes
3 answers

Swift Split TableView in two sections

I'm doing a project in Swift for my school, where I display data in a TableView. It shows information for two days, the actual day and the next day. Now I want to split the table in two Sections for each day. If it's possible with a section header…
0
votes
2 answers

How to sort response by header date in cellForRowAt function in uitableview

I currently have a json response from json which is a [NSDictionary]. This is displayed in a tableview and I was able to set the sorted dates into headers however I am having a difficulties in setting the uilabel in the cellForRowAt function. The…
0
votes
0 answers

Section Header stuck in middle of UITableView

I'm currently trying to implement a TableViewController with a 'Parallex Header' using the 'GSKStretchyHeaderView' library from GitHub (https://github.com/gskbyte/GSKStretchyHeaderView). When scrolling down the tableview, I also want the…
Medwe
  • 318
  • 1
  • 12
0
votes
2 answers

How to bound UITableView Header and also want to show or hide tableview cells by clicking tableview header programatically in swift

I want to add a view in tableView header. I already tried by different ways but achieved the goal. My code is given below for adding a view in headerView. func tableView(_ tableView: UITableView, titleForHeaderInSection section: Int) -> String? { …
Anupam Das
  • 51
  • 1
  • 7
0
votes
2 answers

Rows Count In Section

In My Expandable UITableview number of section are 5 [SectionItems.count]. My goal is to number all cells in the sections from 1 to count of all rows (numbering should not respect sections). this is my code for count rows NSInteger count = 0; for…
0
votes
0 answers

UITableView Header Overlapping does not receive click events

I have UITableView with a header, and the view inside it. It is like a popup menu, when it is not hidden - it overlaps the bottom cells. But the problem I faced - this view is not responding to any touch events and I do not know why. How can I make…
WorieN
  • 1,276
  • 1
  • 11
  • 30
0
votes
0 answers

How to select sub button as well when click on header button?

I have a button in UITableViewHeaderFooterView and under this tableview, I have a few sub buttons as shown as below:- How can I select sub button as well when I click on main button? My current code as below:- - (void)clipButtonClick:(UIButton…
0
votes
1 answer

How can I add an UISwitch to the section of an UITableView?

I want to place an UISwitch to the section of an UITableView. I already made it to place the Switch itself to the section; but it is not responding. In titleForHeaderInSection I'm loading the view as UITableViewHeaderFooterView. After that I'm…
Marcel Gangwisch
  • 8,856
  • 4
  • 23
  • 32
0
votes
0 answers

How can I re-order the sections of a UITableView using drag-and-drop?

I have a UITableView with multiple sections that looks more or less like this. I'm "faking" section headers with rows because I'd like the users to be able to re-order the sections. There seems to be no facility to do so through proper section…
Morpheu5
  • 2,610
  • 6
  • 39
  • 72
0
votes
1 answer

UITableview: Section header does not automatically adjusts the position on fullscreen tap

Happens only when compiled with Xcode9 and iOS 11 devices. Section header does not automatically stick to the top leaving a space in the view through which content can be seen. (Screenshot included) Happens when tapped for full screen. But some…
Dar
  • 57
  • 1
  • 11
0
votes
0 answers

Change corner radius of section header in UItableview ios swift

I need to change custom UITableview section header corner radius dynamically. Initially section header corner radius is 5 for all corners. After adding cell to section, bottom left and bottom right corners should remove. I changed that in layout…