是否已弃用UITableViewCell setText? [英] alternative to deprecated UITableViewCell setText?
本文介绍了是否已弃用UITableViewCell setText?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
书中的代码开始iPhone开发(由Dave Mark和Jeff LaMarche编写)分配给UITableViewCell文本属性:
Code in the book Beginning iPhone Development (by Dave Mark & Jeff LaMarche) assigns to the UITableViewCell text property:
UITableViewCell *cell = ...
...
cell.text = ...
此分配会显示'setText'已被弃用......警告。我应该使用什么作为替代方案?
This assignment brings up a "'setText' is deprecated..." warning. What should I use as an alternative?
另外,如何在不重新输入整个内容的情况下打开警告中的长URL(在Xcode中)?
Also, how do I open the long URL in the warning (in Xcode) without retyping the whole thing?
推荐答案
尝试:
cell.textLabel.text = @"test";
(啊,现在很高兴回答3.0 SDK问题)
(Ah, it's nice to be answer 3.0 SDK questions now)
这篇关于是否已弃用UITableViewCell setText?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文