Questions tagged [uitableviewsectionheader]

218 questions
1
vote
1 answer

UITableView Custom Header Section White line

I m trying to create a custom UITableView with png borders. The problem I m facing is that in the bottom of the Header Section Cell, there is an extra white line, check the screenshots: I tried to remove the separator style, but it's not…
raed
  • 4,887
  • 4
  • 30
  • 49
1
vote
1 answer

Section header cannot be hidden in UITableView with UITableViewAutomaticDimension

I have a UITableView with section headers. The whole tableview has UITableViewAutomaticDimension set, for both cells as well as headers: class ViewController: UIViewController { @IBOutlet weak var tableView: UITableView! @IBOutlet var…
Bart van Kuik
  • 4,704
  • 1
  • 33
  • 57
1
vote
0 answers

How to create tableview that shows/hide cells when you click on section in swift?

How to create a tableview that allows user to show / hide cells of particular section when you click on that particular section in swift ??
1
vote
0 answers

SectionHeader is not displayed while removing an item from the list

I have created a custom header for a section in a UITableViewcontroller. I am using the NFR to get the data. in the rows of the section i have an option to delete. when the user deletes the data the NFR updates the data and removes the row from the…
1
vote
2 answers

How to make UITableView sections according to Month - iOS

I have an array of objects that contain NSDate property in them. And I'm populating them successfully in a UITableView. I want to distribute them (the objects) in UITableView sections according to their month. How can I do that?
Hyder
  • 1,163
  • 2
  • 13
  • 37
1
vote
2 answers

Tableview first section (section 0) is not moving up when table view scroll upwards

First of all, am a fresher developer in iOS and it's in my first project and first issue appeared. My problem explains below. I have a tableView with two sections. The problem is, when i scroll the tableView upwards, the whole tableView except the…
1
vote
0 answers

How to hide section headers in table view ios?

I have a table view with the following implementation, - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { return 1; } - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { return…
codebot
  • 2,540
  • 3
  • 38
  • 89
1
vote
1 answer

How to change UITableViewHeader background color when tapped in iOS

I want to change tapped UITableViewHeader when tapped in each view. I've wrote following coding but it does not work at all. Please help how to solve that issue. - (UIView *) tableView:(UITableView *)tableView…
PPShein
  • 13,309
  • 42
  • 142
  • 227
1
vote
3 answers

UItextfield not editable when we tapped on it

Hi i am very new for ios and in my app i have added UITableList and here i have added UIView xib file on tableList HeaderView And here i have added one UItextfield on UIView xib file and when i click that textfield it's not editable i mean click…
AbhiRam
  • 2,033
  • 7
  • 41
  • 94
1
vote
1 answer

how to get tableView section header

This may sound like a weird question as obviously there is always viewForHeaderInSection method available when working with tables in iOS. However, to work with that function, one needs to reload the data of that table, something which I, in this…
Joris416
  • 4,751
  • 5
  • 32
  • 59
0
votes
1 answer

Create reusable tableview

I'm working on a ordering app with two different types of items. Type One is plain product : Name at the top, some description, sizes, modifiers. Type Two is Multiple products : Product Type at the top, then name,descrition,sizes,modifiers. I'm…
Joe
  • 173
  • 1
  • 15
0
votes
0 answers

UITableView showing black screen and grey bottom

This is What it looks like Table View is in I am using Firebase for Authentication, when I logout and Login again to the app with the account, I get this error. This is my TabBarViewController (UITabBarController) import UIKit class…
0
votes
0 answers

Making two header sections sticky on UITableView

I researched quite a bit but just couldn't find the answer to my question. I have created a table (style: .grouped) in Xcode with two headers I want to make sticky. The upper one should collapse on scrolling until the height of the others cells is…
j___.___j
  • 286
  • 1
  • 3
  • 20
0
votes
2 answers

TableView reloads the same content over again when populated through the unwind segue

I have 2 structs for the data to be passed to the tableView: struct Session { let dateModel: Date? let timeBegModel: Date? let timeEndModel: Date? let sessionModel: String? let venueModel: String? var…
0
votes
1 answer

UITableView Alphabetical Header Sections Determined by a First Letter of a Model Property

I'm trying to create an UITableView with alphabetical order headers depending on my businessName property's first letter of my Company model, and then hide the header sections if there's not a company in the collection that starts with a letter. I'm…