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

Bekzod Rakhmatov
Bekzod Rakhmatov
7,419 Points

Help! I did everything as written in a quiz

But it is giving error

ViewController.swift
import UIKit
class ViewController: UIViewController {

    @IBOutlet 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.
    }
}

1 Answer

Alphonso Sensley II
PRO
Alphonso Sensley II
Pro Student 8,513 Points

Bekzod Rakhmatov Looks like everything is correct. For the sake of the quiz. Try removing import UIKit. I think the quiz may not recognize that.