मैं वास्तव में मेरे त्रुटि देख न:UITableView डेटा स्रोत tableView से एक सेल लौटाएगा: cellForRowAtIndexPath: अपवाद
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *CellIdentifier = @"Cell";
FriendTableViewCell *cell = (FriendTableViewCell *)[tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
cell = [[[FriendTableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease];
[[NSBundle mainBundle] loadNibNamed:@"FriendTableViewCell" owner:self options:nil];
cell = friendCell;
}
cell.lblNickname.text = @"Tester";
return cell;
}
क्या मैं गलत कर रहा हूँ? मैंने दो बार जांच की .. लेकिन त्रुटि नहीं दिखाई दे रही है।
आपकी मदद के लिए धन्यवाद!
धन्यवाद, चेकइन के बाद मुझे फिर से इंटरफेस बिल्डर में एक लापता आउटलेट कनेक्शन मिला! – phx
धन्यवाद, आपका उत्तर सिर्फ वही है जो मुझे चाहिए था। मैंने दृश्य नियंत्रक वर्ग का नाम बदल दिया, इसके बारे में मेरी सोच के बिना आईबी से कनेक्शन तोड़ दिया। कोई और नाम बदलना नहीं क्योंकि मुझे उन्हें पसंद नहीं है! –
ग्रेट उत्तर, आमतौर पर समस्या एक शून्य सेल लौटने के बारे में कुछ है! – Fattie