Questions tagged [nstableheaderview]
42 questions
1
vote
0 answers
Cocoa: Custom NSTableHeaderView height and background color
I tried to change height for NSTableHeaderView,the height was changed,but there was a piece of white on the background.This is my code:
for subView:NSView in topScrollView.subviews {
for subSubView:NSView in subView.subviews {
…

Lau Cherish
- 101
- 9
1
vote
0 answers
Table Header View Auto Size when hide sub view
I have placed attached view inside tableheaderview. When there is change in template based on that SMS view 1 and/or EMail view 2 will hide un hide. I want that it should resize tableheaderview based on visible view. I have set constraints but it…

Ruchish Shah
- 319
- 1
- 6
1
vote
5 answers
tableHeaderView with Autolayout not working correctly
Hey everybody i have a TableHeaderView and everything gets managed by Autolayout:
The UIImageView at the top should be always 2:1, so i set the Aspect ration and the Rest of the needed Constraints.
The 4 UIButtons should be always horizontal and…

Davis
- 1,253
- 4
- 17
- 38
1
vote
0 answers
How Do I Add Subviews to an NSTableHeaderCell?
I have been experimenting with customizing NSTableViews and have gotten onto NSTableHeaderView and NSTableHeaderCell now.
I have a simple need. Each NSTableHeaderCell I want to plant my custom view onto. Which simply consists of two buttons.
Here is…

Josh Kahane
- 16,765
- 45
- 140
- 253
1
vote
2 answers
UITableView tableHeaderView user interaction not working
I'm using a table view with a very large header view (not section header) in order to take advantage of the various advantages of table views (performance on long lists, pull to refresh, etc).
The header is ~700 points tall and contains various…

James Billingham
- 760
- 8
- 32
1
vote
0 answers
NSTableview with 2 vertical headers
I try to achieve something like this:
I got a view-based NSTableview and i'd like to show the search results in this tableview. But i need to show the search results for web and for the local library search separately.
So i am wondering how i can…

dehlen
- 7,325
- 4
- 43
- 71
1
vote
1 answer
How to set HeaderView of UItable view To stick at the top,
In my iphone app
i need to display header for the first section of the table view...
My requirement is to stick the header at the top of the table view (ie fixed at the bottom of the navigation bar) while scrolls down and
header Moves top top with…

iOS dev
- 2,254
- 6
- 33
- 56
1
vote
1 answer
Tableview headerview loading from a nib
I have a tableview controller and I was trying load a nib for its headerview in the viewdidload. The code is like:
(void)viewDidLoad
{
[super viewDidLoad];
self.navigationItem.rightBarButtonItem = self.editButtonItem;
// Create and…

user2053760
- 1,673
- 2
- 14
- 19
0
votes
1 answer
Filling gradient in NSTableHeaderView not working properly
I am trying to fill gradient in header of tableview. So far I am able to achieve it by subclassing NSTableHeaderView and using this code in it-
- (void)drawRect:(NSRect)dirtyRect {
// Drawing code here.
NSGradient *gradientToFill =…

Devarshi
- 16,440
- 13
- 72
- 125
0
votes
0 answers
NSTableHeaderCell and controlBackgroundColor for Dark Mode
I've been trying to customise a NSTableHeaderCell, for this I created a subclass of it and implemented the func draw(withFrame cellFrame: NSRect, in controlView: NSView) where I draw the background with the NSColor.controlBackgroundColor.
Problem is…

Luis
- 533
- 1
- 6
- 19
0
votes
1 answer
tableHeaderView is overlapping cells when adding custom view to subview of container view
I am currently using a UIViewController and adding a UITableView to the view. With this tableView I am adding a UIView called containerView to its tableHeaderView. I set the height of the container view and then adding a second UIView to its…

Simon McNeil
- 293
- 1
- 13
0
votes
1 answer
How to determine when the cells in a tableView are returned so as to add a uiview after its finished?
I'm working with some legacy code and it looks like they added a custom sticky header view in the viewDidLoad. The issues is that I need to add the sticky header view AFTER the other cells are returned so that I may send the sticky header view to…

SwiftyJD
- 5,257
- 7
- 41
- 92
0
votes
2 answers
IOS swift tableview get headerview for a section
Following is my code to add header to section
func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? {
let optionsForSection = isMutliLevelOptions() ? options : optionsList?[section]
let sectionView =…

amodkanthe
- 4,345
- 6
- 36
- 77
0
votes
2 answers
how to add subview at specific point in the view
I'm adding a imageView and UISearchController.searchBar to tableView.tableHeaderView. but don't find the correct way to show the searchBar after the Image.
let view = UIView(frame: CGRect(x: 0, y: 0, width: UIScreen.main.bounds.width, height:…

Yoel Jimenez del valle
- 1,270
- 1
- 9
- 20
0
votes
1 answer
Tableview header is overlapping the cells
I have a view controller with a table view. Tableview has a table view header and dynamic cells. I have added a UIView as table view header and it has multiple labels with dynamic heights. All works fine.
But the problem occurs when the size of the…

Mahadhi Hassan Chowdhury
- 207
- 3
- 8