-3

This error keeps popping up. I keep looking everywhere and can't find a solution.

enter image description here

rmaddy
  • 314,917
  • 42
  • 532
  • 579
ben m
  • 1
  • 1
  • 1
  • just click there for the photo – ben m Jan 13 '16 at 01:34
  • the cell has no text property you have to access the label text property – Leo Dabus Jan 13 '16 at 01:39
  • Questions which depend on screenshots require more work to answer and are generally less useful to other people with the same question as screen shots and images tend to disappear. I suspect you'll see more answers and upvotes if you can avoid depending on images. – Jonah Jan 13 '16 at 01:46

2 Answers2

3

When confronted by a question about a method a good place to start is the class reference (for UITableViewCell in this case).

text (iOS 3.0) Property

The text of the cell.

Deprecation Statement Use the textLabel and detailTextLabel properties instead.

Jonah
  • 17,918
  • 1
  • 43
  • 70
0

You can use

cell.textLabel!.text

instead

JTango18
  • 633
  • 6
  • 11