0
我在下面有一段代碼,它的目的是作爲一個自定義tabor控制器。問題是,當我建立我得到和錯誤,只是如果我在代碼中viewWillAppear函數。如果我將它評論出來,那麼這個項目會建立並運行良好。在插入viewWillAppear函數後在Swift中獲得編譯錯誤
這裏的功能:
override func viewWillAppear(animated: Bool) {
super.viewWillAppear(animated)
if self.childViewControllers.count < 1 {
self.performSegueWithIdentifier("viewController1", sender: self.buttons.0)
}
}
這裏是我得到的錯誤:
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 1
你的建議,並仍然有同樣的錯誤。 –