最佳答案
在 XCode6中创建新项目不允许禁用情节串连板。您只能选择 Swift 或 Objective-C,并使用或不使用核心数据。
我尝试删除故事板,并从项目中删除主要的故事板,并手动设置窗口从 did FinishLaunching
在应用代表中我有这个:
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow
var testNavigationController: UINavigationController
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: NSDictionary?) -> Bool {
testNavigationController = UINavigationController()
var testViewController: UIViewController = UIViewController()
self.testNavigationController.pushViewController(testViewController, animated: false)
self.window = UIWindow(frame: UIScreen.mainScreen().bounds)
self.window.rootViewController = testNavigationController
self.window.backgroundColor = UIColor.whiteColor()
self.window.makeKeyAndVisible()
return true
}
}
然而,XCode 给了我一个错误:
类“ AppDelegate”没有初始值设定项
有人成功过吗?