Sam
Sam

Reputation: 799

"setText: is deprecated" warning

When I run my app, a warning pops up that says "'setText:' is deprecated.how can i rewrite this line of code to get rid of the error?

cell.text = [moreArray objectAtIndex:row];

Thanks

Upvotes: 1

Views: 279

Answers (1)

user142019
user142019

Reputation:

Use this:

cell.textLabel.text = [moreArray objectAtIndex:row];

Upvotes: 7

Related Questions