0

I'm trying to set the text of a label in a Prototype Cell. I've linked all of my @IBOutlets properly. Here are my files. Example: title.text = "Hi" (assuming title is a label in my Proto Cell) gives this: Value of type 'String?' has no member 'text'.

How can I fix this?

I'm happy to provide additional information. Thanks in advance!

atirit
  • 1,492
  • 5
  • 18
  • 30

1 Answers1

0

Sometimes X-code has this error. And also there's no issues in your project, so I think you should:

  1. Close the project
  2. Reopen the project
  3. then Clean => Built => Run the project.

This should solve your problem.

armatita
  • 12,825
  • 8
  • 48
  • 49
Mudith Chathuranga Silva
  • 7,253
  • 2
  • 50
  • 58