iOS Build a Simple iPhone App with Swift View Controllers and Views Creating IBOutlets

David Alvarez
David Alvarez
2,689 Points

What´s wrong in my code?. First IBOutlets code quiz

Hi, I´m not sure what´s wrong here. I´ve written the IBOutlet but it doesn´t work.

@IBOulet weak var textLabel: UILabel!

ViewController.swift
class ViewController: UIViewController {

@IBOulet weak var textLabel: UILabel!



  override func viewDidLoad() {
      super.viewDidLoad()
      // Do any additional setup after loading the view, typically from a nib.
  }

  override func didReceiveMemoryWarning() {
      super.didReceiveMemoryWarning()
      // Dispose of any resources that can be recreated.
  }
}

2 Answers

Christian Mangeng
Christian Mangeng
15,967 Points

Hi David,

it's only a typo: it should be @IBOutlet, so you missed one t.

David Alvarez
David Alvarez
2,689 Points

What a mistake!

Thanks Christian