title: 'NSInternalInconsistencyException' in Swift
body: <p>I am new to <code>Objective C</code> and <code>Swift</code>. Here I am having an exception as <code>'NSInternalInconsistencyException'</code> in my sample program. I do the <strong>following steps</strong> and this is my first program in Swift and I am not familiar in Objective C.</p>
  
  <ol>
  <li>Create an empty application name as <strong>SampleTesting</strong></li>
  <li>Created a <strong>CheckingController.xib</strong></li>
  <li>Created a <strong>AppDelegate.swift</strong></li>
  <li>Created a <strong>CheckingController.swift</strong></li>
  </ol>
  
  <p><strong>CheckingController.xib:</strong></p>
  
  <p>I have created a <code>Sample Button</code>.</p>
  
  <p><strong>AppDelegate.swift:</strong></p>
  
  <pre><code>import UIKit
  
  @UIApplicationMain
  class AppDelegate: UIResponder, UIApplicationDelegate {
  
      var window: UIWindow?
      var navigationController: UINavigationController?
  
      func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: NSDictionary?) -&gt; Bool {
          self.window = UIWindow(frame: UIScreen.mainScreen().bounds)
          // Override point for customization after application launch.
          self.window!.backgroundColor = UIColor.whiteColor()
          self.window!.makeKeyAndVisible()
  
          var mainController: CheckingController? = CheckingController(nibName: "CheckingController", bundle: nil)
          self.navigationController = UINavigationController(rootViewController: mainController)
          self.window!.rootViewController = self.navigationController
          return true
      }
  
      func applicationWillResignActive(application: UIApplication) {
  
      }
  </code></pre>
  
  <p><strong>CheckingController.swift:</strong></p>
  
  <pre><code>import Foundation
  import UIKit
  
  class CheckingController: UIViewController{
  
      init(nibName nibNameOrNil: String!, bundle nibBundleOrNil: NSBundle!) {
          super.init(nibName: nibNameOrNil, bundle: nibBundleOrNil)
      }
  
      override func viewDidLoad() {
  
          super.viewDidLoad()
      }
  }
  </code></pre>
  
  <p>Need some guidance on what could be going wrong here and how to resolve it.</p>
  
  <p>Thanks.</p>