i using view based nstableview , using table header providing space between top of scroll view , first row of tableview. want space scroll when user scrolls tableview, header floating , not scrolling up. sticks there on top.
i need provide gap between top of scroll view , first cell of header view. can think of other solution creating different cell first row, solution creates whole bunch of bugs indexes of table , data. decided use table header providing space between top of scroll view , first row of table view.
is there solution other using header table? if no can disable floating behaviour of header view?
maybe contentinsets property of nsscrollview for. can define top inset. (100 in example)
code (same swift , objective-c):
self.scrollview.contentinsets = nsedgeinsetsmake(100, 0, 0, 0);
Comments
Post a Comment