1

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

Sam
  • 799
  • 2
  • 8
  • 14
  • 2
    This is a documentation question. Anytime you have a question about this sort of thing look at the documentation. It always tells you what to do when a method is depreciated. – Dancreek Jun 07 '11 at 19:39

1 Answers1

7

Use this:

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