您好我是我有 斷頭臺菜單麻煩手動安裝開始的iOS學生https://github.com/Yalantis/GuillotineMenu斯威夫特使用未申報類型的「...視圖控制器」
使用的Xcode 6.3 & iOS8.3
這是我確實 1)添加斷頭臺菜單文件和資產從示例,複製到項目目標選定並放在我的文件與項目名稱
2)在界面生成器中創建ViewController並將類設置爲GuillotineMeneViewController,它在下拉菜單
3)的ViewController附帶我創建界面生成器欄按鈕項和按鈕單一視圖應用,連接按鈕出口來編碼
4)控制拖動到GuillotineMenuViewController設置SEGUE到自定義和類GuillotineMenu它是在下拉
5)在我的ViewController我複製的導航欄代碼示例viewDidLoad中,之後
受審SEGUE複製準備運行,並不斷收到錯誤使用未申報類型的「guillotineMenuViewController
這裏是我的ViewController代碼
import UIKit
class ViewController: UIViewController {
@IBOutlet weak var barButton: UIButton!
override func viewDidLoad() {
super.viewDidLoad()
let navBar = self.navigationController!.navigationBar
navBar.barTintColor = UIColor(red: 65.0/255.0, green: 62.0/255.0, blue: 79.0/255.0, alpha: 1)
navBar.titleTextAttributes = [NSForegroundColorAttributeName: UIColor.whiteColor()]
}
override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
// Your Menu View Controller vew must know the following data for the proper animatio
let destinationVC = segue.destinationViewController as! GuillotineMenuViewController
destinationVC.hostNavigationBarHeight = self.navigationController!.navigationBar.frame.size.height
destinationVC.hostTitleText = self.navigationItem.title
destinationVC.view.backgroundColor = self.navigationController!.navigationBar.barTintColor
destinationVC.setMenuButtonWithImage(barButton.imageView!.image!)
}
}
@nhgrif感謝您編輯我的問題 –