Hi I am calling
- (UITableViewCell *)tableView:(UITableView *)tableView
cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *CustomCellIdentifier = @"CustomCellIdentifier";
CustomCell *cell = (CustomCell *)[tableView dequeueReusableCellWithIdentifier:CustomCellIdentifier];
if (cell == nil)
{
//cell = [[[CustomCell alloc] initwithidentifier:CustomCellIdentifier] autorelease];
NSArray *nib = [[NSBundle mainBundle] loadNibNamed:@"CustomCell" owner:self options:nil];
for (id oneObject in nib)
if ([oneObject isKindOfClass:[CustomCell class]]) {
cell = (CustomCell *)oneObject;
}
}
NSUInteger row = [indexPath row];
NSDictionary *rowData = [self.listData objectAtIndex:row];
cell.nameLabel.text = @"text";
[cell.contentView addSubview: nameLabel];
[cell reloadInputViews];
return cell;
}
But the nameLabel wont display with its new name. What am I doing wrong please?? Thanks!