Questions tagged [uitableviewsectionheader]

218 questions
0
votes
1 answer

Select row other sections contains same value in UITableview?

I have multiple section and each section can have multiple rows. Code : Display as excepted. class SampleViewController: UIViewController { let sectionArray = ["pizza", "deep dish pizza", "calzone"] let items = [["Margarita", "BBQ…
karthikeyan
  • 3,821
  • 3
  • 22
  • 45
0
votes
1 answer

Section header height differs when set manually

I'm trying to change the height of a particular section header inside a table view. I tested with code below just to understand how tableView(_:heightForHeaderInSection:) works. override func tableView(_ tableView: UITableView,…
geohei
  • 696
  • 4
  • 15
0
votes
3 answers

How to select the cell in the section of aTableView in swift

I'm working with sections in a tableview in storyboard, where selecting a cell in the section will guide me to another screen. I have managed to do it but I feel that I use too much code and must see a better way to develop it, I have seen similar…
0
votes
1 answer

Off-Screen (Invisible) TableViewCells Don't Animate

I am currently in the process of creating a UITableView with a UITableViewHeader. This UITableViewHeader is a HeaderView for the first section of my UITableView which has the ability to expand or collapse. It shows filters to narrow down what is…
PennyWise
  • 595
  • 2
  • 12
  • 37
0
votes
1 answer

UITableView section footer issues when showing and hiding a keyboard

I have a UITableView with section headers and footers. In one cell I have a UITextField, which triggers the display of a keyboard. When the keyboard appears, only sometimes (it somehow depends on the scrolling position of the table) the last…
LPG
  • 384
  • 2
  • 12
0
votes
1 answer

Long Text in Label of Section Header is not showing correctly

I have a textLabel in table view header section in a Question/Answer app. When the user tap on Question, answer is shown and on tap again answer will hide. I am displaying Question in header section but if the question text is long the text is not…
0
votes
2 answers

iOS - Removing separator between viewForHeaderInSction and first Cell in UITableView

I am using a UITableView where i need to remove the separator between first cell and HeaderView of a UITableView. Tried a some solution but nothing worked for me. Any kind of help will be appreciable. attaching screen shot of my current view and…
Md. Sulayman
  • 781
  • 8
  • 30
0
votes
2 answers

UITableView header align with cell bounds

I am generating a custom header view for my UITableView which has two horizontal lines up & down and a UILabel in between. let lineWidth = tableView.bounds.width //This is not correct, will never align with UITableViewCell let offset =…
Deepak Sharma
  • 5,577
  • 7
  • 55
  • 131
0
votes
1 answer

Deleting row from UITableView causes section header issues?

I have a UITableView with custom section headers implemented as UITableViewCells. The relevant method from my UITableViewDelegate looks like this: func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? { …
Shadowman
  • 11,150
  • 19
  • 100
  • 198
0
votes
2 answers

Reload header in section without reloading section rows in swift

I'm trying to reload UITableView section Header instead of reloading the whole section's rows because I have a UITextfield in the row and when I call tableview reloadSections it's clear the textfield value.
0
votes
3 answers

tableview section header is not sticky in multi sectional tableview

I have implemented a tableview (4 sectional) in IOS. Problem is that I have just added a section header in first section.Other sections don't have a header.First section does not have row (number of rows is 0).other sections have multiple rows.When…
ahmetvefa53
  • 581
  • 6
  • 20
0
votes
1 answer

How to add custom controls in UITableiew header

I have two question 1.) I want to add multiple controls in UITableViewHeader section for that I have use below code but I am not able to add button in view func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? { …
user9328640
0
votes
1 answer

ios tableview section header is not sticky

I have a tableview and tabview (3 different tab).I want to show 4 section for first tab , 3 section for second tab and . 2 section for third tab. Just first section's header must be sticky top of the view.Because of this I have implemented …
ahmetvefa53
  • 581
  • 6
  • 20
0
votes
0 answers

How to fix UIButton changing state while scrolling in Expandable and Collapsible tableview sections

I have an expandable and collapsible section in my tableview cell for days of the week. When you click the open button to expand the section the button changes state to close and you can click it again to collapse. However, if you open multiple…
0
votes
1 answer

Align detailTextLabel of UITableViewHeaderFooterView

I got a UITableView and want to customize its sectionHeader. My goal is to have the detailTextLabel right-Aligned using Autolayout. (See Photo). Many hours I tried to set it's anchors, modified the tableview.sectionHeaderHeight, worked with the…