I have a custom UITableView header which I want to be able to scroll above the top of the table. Normally the header would stick to the top of the table, is it not possible to somehow change to scrolling ability so that it can go beyond that and scrolls with the cells in the table?
Thanks.
Well if that is the desired behavior you want, just put the
headeras the first cell’s content. It is possible to customize any particular cell you want.UITableViewDelegatedocumentaion will help you in that matter.PS: the whole point of using
tableViewheader is to make it stick to the top of the window.EDIT: If it is necessary that you have to do the way you want, then you can try this: move your
tableViewa little down by setting itscontentOffset. eg:myTableView.contentOffset= CGPointMake(0,heightOfYourView). Now addyourViewat the top