I tried to include the fast ViewController file in the Objective-C project, but I canโt do it, it shows an error, for example an unknown name like import , how to solve this problem, please, any help for this problem.
Here I post my code and ScreenShot.
import UIKit
@objc class SigViewController2: UIViewController {
@IBOutlet weak var cameraBtn: UIButton!
@IBOutlet weak var imageBtn: UIButton!
@IBOutlet weak var settingsBtn: UIButton!
@IBOutlet weak var mediaBtn: UIButton!
override func viewDidLoad() {
super.viewDidLoad()
}
override func viewWillAppear(animated: Bool) {
super.viewWillAppear(true)
navigationController?.navigationBarHidden = false
self.navigationItem.title = "Main";
}
override func supportedInterfaceOrientations() -> UIInterfaceOrientationMask {
return UIInterfaceOrientationMask.Portrait
}
override func preferredInterfaceOrientationForPresentation() -> UIInterfaceOrientation {
return UIInterfaceOrientation.Portrait
}

source
share