Questions tagged [nstableheaderview]

42 questions
0
votes
1 answer

tableHeaderView preserves state when popping viewController except ContainerViewController

I have a tableViewController with a tableHeaderView. When I'm at the top of the tableView and I scroll the tableView up slightly the tableHeaderView is hidden and can reappear again by scrolling down slightly. This is the default behaviour. When I…
alionthego
  • 8,508
  • 9
  • 52
  • 125
0
votes
0 answers

How to fix tableHeaderView and make it scrollable programatically in swift 3?

I used UITextView for tableHeaderView but it moves. How can I fix tablHeaderView? And also when text is too much, it is off of the tableHeaderView. So I want to make it scrollable too. How do I make it do so? I couldn't find good recourses to make…
Ryo
  • 83
  • 11
0
votes
0 answers

Use a UITableView as other tableView.talbeHeaderView

I use a tableView(named tableViewTwo) as other tableView.talbeHeaderView The tableViewTwo cant scroll Why and What can I do UIView *view1 = [[UIView alloc]initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, 12)]; view1.backgroundColor =…
CoderYL
  • 85
  • 7
0
votes
1 answer

Message flow problems with NSTableHeaderView and NSTableHeaderCell while trying to produce transparent NSTableView Header

Problem: I am trying to create a custom transparent TableView Header and I have created subclasses of NSTableHeaderView and NSTableHeaderCell and overridden -drawWithFrame:inView and -drawInteriorWithFrame:inView in the NSTableHeaderCell subclass.…
0
votes
1 answer

UIView Programmatic Width Constraint

What kind of constraint(s) do I need to add in order to ensure when the phone rotates the search bar and label span the width of the phone? Below is code I am using to spin up a search bar & label and add them to a table…
aherrick
  • 19,799
  • 33
  • 112
  • 188
0
votes
1 answer

Swift: Unable to add NSTableHeaderCell to NSTableView

So I'm drawing an NSTableView programmatically, however, I'm unable to draw the header. Any ideas? let tableContainer: NSScrollView = NSScrollView(frame: NSMakeRect(20, 50, 380, 200)) let tableView: NSTableView = NSTableView(frame: NSMakeRect(0, 0,…
David
  • 3,226
  • 3
  • 23
  • 18
0
votes
1 answer

Autolayout works not correct with HeaderView and ios6

i´m having a tableview with an headerview inside. Theres no cell in the tableview, only this one headerview which have some subviews! On ios7 everything works perfect when i do: - (void)viewDidLoad { //calculate content…
Davis
  • 1,253
  • 4
  • 17
  • 38
0
votes
1 answer

Accessing the NSTableHeaderCell of a NSTableViewHeader for customization

According to the NSTableHeaderView class reference, an NSTableHeaderView uses an NSTableHeaderCell class to implement its user interface. NSTableHeaderView uses NSTableHeaderCell to implement its user interface. NSTableHeaderView Class…
Sani
  • 1,283
  • 11
  • 30
0
votes
1 answer

how to stop UITable view from automatic bouncing

I am working on an iOS app that implements a UITableView I have a TableHeaderView (for a custom pull to refresh) I want the header view to be hidden on top of the other rows until the user pulls down It all works fine when there are a lot of rows…
0
votes
1 answer

Removing subview from UITableView header view

My iOS apps shows a UITableView with a tableHeaderView containing 3 subviews (A,B and C). | A | | B | | C | | cell1 | | cell2 | | cell3 | | ... | The problem is that when I remove C using: [C removeFromSuperview] I have a…
Claus
  • 5,662
  • 10
  • 77
  • 118
0
votes
2 answers

Scrolling TableView effects response time of SegmentControl

This may be a strange problem and I hope someone has had it before. I added a SegmentControl to my TableView using this code: UIView *headerView = [[UIView alloc] init ]; [headerView addSubview:resultsSegment]; …
Dan
  • 2,304
  • 6
  • 42
  • 69
0
votes
0 answers

NSTableHeaderView Resizing Makes Table Rows Move Down

I've created a subclass of NSScrollView which is set as the class of a scroll view with table view in IB. I increased the height of the table's header view and added a label to act as the title for the table view. The problem is that the table…
rdelmar
  • 103,982
  • 12
  • 207
  • 218
1 2
3