Questions tagged [uitableviewsectionheader]

218 questions
0
votes
3 answers

How to get Cell data when I click on button which is on viewForFooterInSection in swift

I am new in swift and I am facing problem when I click on button which is in viewForFooterInSection my code is like this In viewForFooterInSection func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> UIView? { …
Mujtaba
  • 97
  • 1
  • 7
0
votes
1 answer

Section header background color changes when selected in swift

I have a table view with with multiple sections. I have two colors. White and blue. If a section satisfies the requirement it should be set to blue background permanently. I have an issue. I am able to set the background color of the section header…
Viva
  • 79
  • 9
0
votes
1 answer

how to give a specific section name to each category of cell in a UITableView

i am building a user profile table view with 2 types of cell. the first cell contains an image view and a label (for the user image and their name, respectively) the second one contains 2 labels side by side (one for a job title, and the other for…
LEKYSMA
  • 141
  • 10
0
votes
1 answer

Multiple section from header selection UITableview

i´m trying to do like a treeview with a tableview to select multiple items do you know any other way to do a treeview? I'm trying to give permissions to the user of cameras from different providers How can i select all childrs from a UIButton on the…
0
votes
1 answer

Prevent Single Row from Refreshing in UITableView

I have a custom section header in my UITableView that contains A UICollectionView of some avatar images. The data is sourced once and cached for the images (images change so infrequently that it doesn't warrant real time updates). I was hoping to…
NullHypothesis
  • 4,286
  • 6
  • 37
  • 79
0
votes
0 answers

Avoid displaying tableview section header before table loads - ios - swift

I have a tableView added in storyboard with its datasource and delegates attached within storyboard I have tableview section header "Pet Info" which display on one of the custom cell. As soon as i land on the screen, im reloading tableview data.…
Ashh
  • 569
  • 1
  • 6
  • 28
0
votes
1 answer

How to get Tableview Sections working with SQLite local database in Swift 5

I am new to Xcode and swift and learning. I am trying to build an app with SQLite database that is saved within the app. The database has five fields viz; id, cdcommand, cdtable, cdshortcut, cddescription; My tableview is loading completely fine.…
0
votes
1 answer

UIPanGestureRecognizer in section header view affects UITableViewCell

Really appreciate any idea or advice in what can cause such behavior in Table View? My upper cell is a section header view with custom implementation for deleting by adding UIPanGestureRecognizer to its view. And the row bellow is a 'classic' table…
0
votes
0 answers

Problem with Custom View for header in section not rendering on tap gesture UITableView

I have tried n number of solutions, but still no luck. I designed my own Custom cell for Header of a Section. So my table renders properly. Then for each header cell in func viewForHeaderInSection(), I've added tap gesture to handle click on header.…
Rachna
  • 213
  • 4
  • 17
0
votes
0 answers

Swift 5 Collapsible table header

I have to do this implementation, I need a list of cells representing month periods, where each one is collapsed, and when clicked it shows its content, I used two cells prototypes based on some tutorials I found but I'm really new into swift…
BetoCuevas
  • 123
  • 8
0
votes
2 answers

How Can I Change Background Color and Text Color of UITableHeaderView

I know how to provide a custom UITableview header and how to customize it. But I'm stuck while using UITableview with SectionTitles. How I can change the color of the background color UITableview header and how I can change the text color of the…
0
votes
1 answer

TableView from JSON file - sort data

Hi everyone I'm working with a JSON file to populate a UITableView. The JSON file has two fields that I need to use: - "First name" - "region" The "region" fields must be assigned for the creation of the UITableView sections. The "name" fields must…
kAiN
  • 2,559
  • 1
  • 26
  • 54
0
votes
2 answers

Create a model for create section - Swift

I need to create a UITableView with section, and I have values like bellow: let sectionTitles = ["section-1", "section-2", "section-3"] let Items = [["id": 100, "name":"jim", "family": "rason"],["id": 200, "name":"jim22", "family": "rason22"],…
jo jo
  • 1,758
  • 3
  • 20
  • 34
0
votes
0 answers

How to structure Firebase data for UITableViewSections

What is the best way to structure Firebase data to implement sections in my UITableview. At this time I only have a standard UITableView and I would like to divide it up in sections. Now I'm writing just writing the data like this: …
Eccles
  • 394
  • 1
  • 3
  • 13
0
votes
1 answer

Matching left alignment of custom section header view with other standard headers and cells

In a UITableView (plain style) with dynamic prototype cells and mostly standard headers and footers, I had to replace one header with a custom view. This was easily done by creating a UIView in the storyboard inside the affected table view (next to,…
LPG
  • 384
  • 2
  • 12