I created a UITableView programmatically, and now I want to add a fixed header to it. As I below, the header code also scrolls through my tableview.
UILabel *label = [[[UILabel alloc] initWithFrame:CGRectMake(0, 0, 320, 28)] autorelease]; label.backgroundColor = [UIColor darkGrayColor]; label.font = [UIFont boldSystemFontOfSize:15]; label.shadowColor = [UIColor colorWithWhite:0.0 alpha:0.8]; label.textAlignment = UITextAlignmentLeft; label.textColor = [UIColor whiteColor]; label.text = @"my header"; myTable.tableHeaderView = label;
Is there a function that disables header scrolling?
thanks
header uitableview scroll ios4
bugphix
source share