Showing posts with label Header. Show all posts
Showing posts with label Header. Show all posts
Wednesday, 5 March 2014
How to add separator line to UITableView Section
UITableViewHeaderFooterView *header = (UITableViewHeaderFooterView *)view; CGRect sepFrame = CGRectMake(0, view.frame.size.height-1, 320, 1); UIView *seperatorView =[[UIView alloc] initWithFrame:sepFrame]; seperatorView.backgroundColor = [UIColor colorWithWhite:224.0/255.0 alpha:1.0]; [header addSubview:seperatorView];
Tuesday, 4 March 2014
UITableView - change section header color iOS 6 and up
- (void)tableView:(UITableView *)tableView willDisplayHeaderView:(UIView *)view forSection:(NSInteger)section
{
view.tintColor = [UIColor clearColor];
UITableViewHeaderFooterView *header = (UITableViewHeaderFooterView *)view;
[header.textLabel setTextColor:[UIColor whiteColor]];
}
{
view.tintColor = [UIColor clearColor];
UITableViewHeaderFooterView *header = (UITableViewHeaderFooterView *)view;
[header.textLabel setTextColor:[UIColor whiteColor]];
}
Labels:
Header,
iOS 6,
ios 7,
Section,
TableViewCell,
UITableView
Subscribe to:
Posts (Atom)