willDisplayCell
में UITableViewCell
के रंग का काम क्यों सेट करता है लेकिन cellForRowAtIndexPath
में नहीं?"willDisplayCell" में UITableViewCell के रंग का काम क्यों सेट करता है लेकिन "cellForRowAtIndexPath" में नहीं?
नोट्स:
- मैं इस कोड का उपयोग कर रहा एक सेल की पृष्ठभूमि का रंग सेट करने के लिए:
[cell setBackgroundColor:[UIColor yellowColor]];
- काम करता है जब मैं यह विधि में डाल
- (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath
- काम नहीं करता है मैं में डाल
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
क्या आप 'tableView: willDisplayCell: forRowAtIndexPath: 'और' tableView: cellForRowAtIndexPath: 'के अपने कार्यान्वयन पोस्ट कर सकते हैं? – titaniumdecoy