Próbowałem zrobić plik .swift, aby zmienić kolor z paska nawigacji w ale, ale gdy próbowałem zaimportować File.swift w ViewController pokazuje mi błąd.Jak mogę zaimportować File.swift do ViewController.h i viceversa?
------- kod --------
//Esta clase se creo para dar color a la NavViewController por medio de su valor en RGB
import UIKit
class NavViewController: UINavigationController {
override func viewDidLoad() {
//Se divide el valor RGB entre 255.0
UINavigationBar.appearance().barTintColor = UIColor(red: 110/255.0, green: 192/255.0, blue: 238/255.0, alpha: 1.0)
super.viewDidLoad()
// Do any additional setup after loading the view.
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
/*
// MARK: - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation
override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
// Get the new view controller using segue.destinationViewController.
// Pass the selected object to the new view controller.
}
*/
błąd mówi: Oczekiwany; po ogłoszeniu najwyższego poziomu
Co zawiera ten plik? Czy to klasa? –