title: Fatal error: use of unimplemented initializer 'init(coder:)' for class
body: <p>I decided to continue my remaining project with Swift. When I add the custom class (subclass of <code>UIViewcontroller</code>) to my storyboard view controller and load the project, the app crashes suddenly with the following error:</p>
  
  <blockquote>
    <p>fatal error: use of unimplemented initializer 'init(coder:)' for class</p>
  </blockquote>
  
  <p><strong>This is a code:</strong></p>
  
  <pre><code>import UIKit
  
  class TestViewController: UIViewController {
  
      init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: NSBundle?) {
          super.init(nibName: nibNameOrNil, bundle: nibBundleOrNil)
          // Custom initialization
      }
  
      override func viewDidLoad() {
          super.viewDidLoad()
                // Do any additional setup after loading the view.
      }
  
      override func didReceiveMemoryWarning() {
          super.didReceiveMemoryWarning()
          // Dispose of any resources that can be recreated.
      }
  
      /*
      // #pragma mark - Navigation
  
      // In a storyboard-based application, you will often want to do a little preparation before navigation
      override func prepareForSegue(segue: UIStoryboardSegue?, sender: AnyObject?) {
          // Get the new view controller using [segue destinationViewController].
          // Pass the selected object to the new view controller.
      }
      */
  }
  </code></pre>
  
  <p>Please suggest something</p>