2011-04-04 47 views
1

嗨, 所以我建立一个应用程序表视图和导航控制器组合成我的标签栏应用程序,而它的编译,我碰到了一个错误说:“的setText”已过时“的setText”已过时

这是我的代码得到这个错误的部分:

NSUInteger row = [indexPath row]; 
cell.text = [glossaryArray objectAtIndex:row]; // Right here is the problem 

所以希望有人能帮助我吗?谢谢

回答

4

改为使用cell.textLabel.text

+0

感谢您的帮助! – PatrickGamboa 2011-04-04 16:31:21

1

变化cell.text到cell.textLabel.text

+0

感谢您的帮助! – PatrickGamboa 2011-04-04 16:32:19

1

为什么不看看API文档?在UITableViewCell中查找“文本”后找到了10秒钟:

The text of the cell. (Deprecated in iOS 3.0. Use the textLabel and detailTextLabel properties instead.)