Skip to content

Instantly share code, notes, and snippets.

@arzola
Created February 19, 2014 04:01
Show Gist options
  • Save arzola/9085845 to your computer and use it in GitHub Desktop.
Save arzola/9085845 to your computer and use it in GitHub Desktop.
-(UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section
{
UIView *headerView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 30, 60)];
headerView.backgroundColor = [UIColor clearColor];
UIView *label = [[UIView alloc] initWithFrame: CGRectMake(0,0, 50, 50)];
label.backgroundColor = [UIColor yellowColor];
label.autoresizingMask = UIViewAutoresizingFlexibleRightMargin;
[headerView addSubview:label];
return headerView;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment