开始看swift的时候 添加navigation出现了问题,,添加总是报错,我贴出我写的方法,因为对swift的了解有限,
ar window: UIWindow?
var first:ViewController?
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject:AnyObject]?) -> Bool {
window = UIWindow(frame:UIScreen.mainScreen().bounds)
let view = ViewController()
let navi = UINavigationController(rootViewController: view)
window?.rootViewController = navi
return true
}