Questions tagged [sectionheader]

101 questions
31
votes
2 answers

UICollectionView with section headers like a UITableView

I have a quick question has anyone been able to successfully create and implement section headers in a CollectionView similar to the headers in a TableView ? I did a lot of research and found snippets of code but no real example from anyone who…
emm
  • 363
  • 1
  • 5
  • 11
25
votes
1 answer

ios: uitableview section header anchor to top of table

i'm trying to make a table with multiple section (like contact app) everything went well and i've created custom section header on top of each section displaying the character representing this section..the problem is i want it to be like Contact…
Mohamed Emad Hegab
  • 2,665
  • 6
  • 39
  • 64
10
votes
3 answers

Changing color of section header in UITableview

i have pretty simple simple question (i hope so). How do i change the section header color in a UITableview from default blue to black transparent? Thanks in advance.
Simon D.
  • 525
  • 3
  • 6
  • 14
9
votes
1 answer

different height of section header in grouped tableview

got a default grouped style table like left screenshot in below, but it looks having different height of section header, the top first is 69 px measured, while those rest are 40 px. Why? Are they supposed to be same height, aren't they? So I'd like…
S1U
  • 825
  • 2
  • 14
  • 26
7
votes
5 answers

Change UITable section backgroundColor without loosing section Title

i have changed the backgroundColor/backgroundImage of my tableviews sections. I am using plain tableView. No worries, get worked without problems with this code: -(UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section…
brush51
  • 5,691
  • 6
  • 39
  • 73
7
votes
4 answers

UITableView section header creeps under navigation bar

Due to navigation bar style being translucent, I get my first section header (section # 0) hidden under my navigation bar. I know this has been asked before, and a workaround to it is to do: self.navController.navigationBar.translucent = YES; This…
Nirav Bhatt
  • 6,940
  • 5
  • 45
  • 89
6
votes
2 answers

In a SectionList how do i hide the section header of an empty section (data:[])

I'm using react-native's SectionList and can't hide the sectionheaders of the empty sections of my dataset. I want to show only the section headers and the rows of the sections that are not empty.
6
votes
0 answers

How to add sticky section headers in listview?

From Android 4.0 in the default contact app the list view has header sections. The headers of the currently visible section remain on top of the ListView until the next new section becomes visible and pushes the old header off. I see that there are…
user782298
  • 91
  • 5
6
votes
2 answers

UITableView Custom Section Header, duplicate issue

I am having trouble animating a custom UITableView section header. The goal was to create collapsable sections. When I tap on the custom header the first time it animates as expected, however every time after that it leaves a duplicate in the…
S-T-R-E-G-A
  • 277
  • 3
  • 11
5
votes
2 answers

How to fetch section name when using NSFetchedResultsController and sectionNameKeyPath is a relationship?

In the following code: NSFetchedResultsController *frc = [[NSFetchedResultsController alloc] initWithFetchRequest:fetchRequest managedObjectContext:myManagedObjectContext sectionNameKeyPath:@"store" cacheName:@"SomeCache" ]; The @"store" value…
pulkitsinghal
  • 3,855
  • 13
  • 45
  • 84
4
votes
1 answer

How to make a section header in ListView which always sticks on top?

Android does not have a support for section headers on ListView by default. Based from my research, I've learned that there are 2 ways to implement a section header on ListView. The first one is to support 2 types of views in the list view: the…
Arci
  • 6,647
  • 20
  • 70
  • 98
4
votes
0 answers

ios15 UITableView Section Label font size and color was change

After upgrading ios14 to ios15, the font size and color of the label in the section of uitableview have changed. click link view picture! Is there any global solution. My current method is like this, but I can only solve one tableview -…
4
votes
1 answer

Lable and button in the header section view UITableView

I am trying to add a section title Label and a button in the header section view. but it looks empty. when I run the application the header is empty. the 2nd section code work fine override func tableView(_ tableView: UITableView,…
developer16
  • 195
  • 12
4
votes
2 answers

viewForSupplementaryElementOfKind is not setting the label text until Collection View is scrolled

I'm using viewForSupplementaryElementOfKind to generate a header in my Collection View. The header (SectionHeader) is a Section Header accessory in Storyboard that simply just contains 1 outlet. class SectionHeader: UICollectionReusableView { …
4
votes
1 answer

Add Image and Caption Text to Three20 Table section using TTSectionedDataSource

I am trying to create table using TTTableViewController. I want to display an image in the section header along with some caption text, something similar to what instagram and many other application does. I tried using the sample from…
Dar
  • 185
  • 2
  • 12
1
2 3 4 5 6 7