2009-11-14 48 views
0
cell.text = [tableoptions objectAtIndex:indexPath.row]; 

当我编写这个语句时,我得到像'setText:'这样的警告已被弃用。关于UITableviewcell的警告

如何消除此警告?????

+1

投票结束为1089676和其他人的确切副本 – marcc 2009-11-14 06:34:53

回答

2

尝试:

cell.textLabel.text = [tableoptions objectAtIndex:indexPath.row]; 

text属性已被废弃,并为textLabel和detailedTextLabel进行了介绍。见Apple's Documentation