प्रदर्शन के लिए UITableView 'कोशिकाओं का पुन: उपयोग करना सामान्य है। क्या टेबलव्यू हेडर 'दृश्यों के साथ एक ही काम करने का कोई तरीका है? मैं जो कि प्रतिनिधि की विधि के साथ वापस आ रहे हैं के बारे में बात कर रहा हूँ:पुन: प्रयोज्य तालिका दृश्य शीर्षलेख दृश्य
- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section
मैं अपेक्षा के अनुरूप जिसके बाद काम नहीं लगती करने की कोशिश की:
- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section
{
static NSString *CellIdentifier = @"Header";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier: CellIdentifier];
if (cell == nil) {
cell = [self getHeaderContentView: CellIdentifier];
}
return cell;
}
वहाँ करने के लिए एक रास्ता है हेडर 'विचारों का पुन: उपयोग करें?
आईओएस 6 के रूप में आप अब 'UITableViewHeaderFooterView' जो reuseIdentifier का उपयोग करता है। – h4xnoodle
लेकिन वर्तमान में आप यूआई बिल्डर के साथ UITableViewHeaderFooterView का उपयोग नहीं कर सकते हैं। –