If it was receiving nil
it would also print 0
, I would suggest trying this
NSLog(@"cell:%@", [self.tableView preparedCellAtColumn:0 row:0])
to ensure you are actually getting a valid cell object from the table view.
Where are you calling that code from? After the table is already being displayed? During initialisation?
If the former then there should be a cell available, if the latter then it may not have been created or reallocated from the pool yet.
Try the NSLog
command above to ensure you are actually getting a cell back and not nil
from the table view.