2009-11-14 76 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