Can't set text label in table view in Xcode for the iPhone
Posted
by Dave
on Stack Overflow
See other posts from Stack Overflow
or by Dave
Published on 2010-03-24T21:33:13Z
Indexed on
2010/03/24
22:53 UTC
Read the original article
Hit count: 337
I have this code:
tableList = [[NSMutableArray alloc] initWithObjects:@"First View",@"Second View",nil];
I have synthesized it and set the property, the problem is when I add this line under the configure the cell comment to set the text of each row, the app opens in the simulator but instantly closes:
// Configure the cell.
cell.textLabel.text = [tableList objectAtIndex:indexPath.row];
return cell;
Any ideas on what is causing this ?
© Stack Overflow or respective owner