Horje
dequeuereusableheaderfooterview Code Example
dequeuereusableheaderfooterview
- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section
{
    return 40.0;
}
- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section
{
    static NSString *headerReuseIdentifier = @"TableViewSectionHeaderViewIdentifier";

   // Reuse the instance that was created in viewDidLoad, or make a new one if not enough.
    UITableViewHeaderFooterView *sectionHeaderView = [tableView dequeueReusableHeaderFooterViewWithIdentifier:headerReuseIdentifier];
    sectionHeaderView.textLabel.text = @"Non subclassed header";

    return sectionHeaderView;

}




Objectivec

Related
compare nsstring Code Example compare nsstring Code Example
hp omen gaming laptop Code Example hp omen gaming laptop Code Example
pass in value in route group middle ware Code Example pass in value in route group middle ware Code Example
obj c redraw a view 60 times a sec Code Example obj c redraw a view 60 times a sec Code Example
tabloe view delegate method + iOS Code Example tabloe view delegate method + iOS Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
12