Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Swift - "use of unresolved identifier"

I am studying Swift! I want create Main interface on xib. But have error "use of unresolved identifier".

enter image description here

Add code from MainViewController

import Foundation

public class MainViewController : BaseViewController {

    override func viewWillAppear(animated: Bool) {
        super.viewWillAppear(animated)

        // TODO: Write your test code here
        // ...
    } }

UPD:(Add image) enter image description here

like image 857
Artem Tutov Avatar asked Jan 22 '16 15:01

Artem Tutov


1 Answers

1) Right Click your MainViewController.swift

2) Select Show File Inspector

3) On Right side panel, look at Target Membership

4) Add your class to target by check the box :)

like image 62
Breek Avatar answered Oct 09 '22 11:10

Breek