Alex Rivera | Logout

alternative to deprecated UITableViewCell setText?

Asked 2009-07-06T23:30:38.647
31

Code in the book Beginning iPhone Development (by Dave Mark & Jeff LaMarche) assigns to the UITableViewCell text property:

UITableViewCell *cell = ...
...
cell.text = ...

This assignment brings up a "'setText' is deprecated..." warning. What should I use as an alternative?

Also, how do I open the long URL in the warning (in Xcode) without retyping the whole thing?

Edit
Report

1 Answer

74

try:

cell.textLabel.text = @"test";

(Ah, it's nice to be answer 3.0 SDK questions now)

answered 2009-07-06T23:34:19.683

Your Answer