Dequeuereusableheaderfooterview

[Solved] Dequeuereusableheaderfooterview | Objectivec - Code Explorer | yomemimo.com
Question : dequeuereusableheaderfooterview

Answered by : grumpy-gnu-lv9ymfyeqx7p

- (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;
}

Source : https://stackoverflow.com/questions/12900446/how-to-use-uitableviewheaderfooterview | Last Update : Sat, 02 May 20

Answers related to dequeuereusableheaderfooterview

Code Explorer Popular Question For Objectivec