Can any one has practiced creating project in xcode6 (swift) without storyboard.
I am able to implement
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: NSDictionary?) -> Bool {
// Override point for customization after application launch.
self.window = UIWindow(frame: UIScreen.mainScreen().bounds)
self.window!.backgroundColor = UIColor.whiteColor()
self.window!.makeKeyAndVisible()
var viewController: ViewController? = ViewController(nibName: "ViewController", bundle: nil)
self.navigationController = UINavigationController(rootViewController: viewController)
self.window!.rootViewController = self.navigationController
return true
}
but it fails with following error
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason:
'-[UIViewController _loadViewFromNibNamed:bundle:] loaded the "ViewController" nib but the
view outlet was not set.'
so i tried to relate file's owner UIView with xib, but i am unable to see UIView in file's owner property.
See the screen below
EDIT
Thanks Alex but from the second last point from HERE i am unable to find any view. See the screen attached