2010년 12월 29일 수요일

UITableViewCell setText deprecated.

Looks like the cell init changes have been made to support the 4 new default
cell types accessible via initWithStyle which support 2 labels in 1 cell inherently
whithout the use of UITableCell subclasses.

cell.text = [nameSection objectAtIndex:row];


you can use:
[cell.textLabel setText:[nameSection objectAtIndex:row];
// or
cell.textLabel.text = [nameSection objectAtIndex:row];
 
//for reference
//cell.detailTextLabel.text = [nameSection objectAtIndex:row];


posted by iphonedevbook.com

댓글 없음:

댓글 쓰기