Fatal error: use of unimplemented initializer in custom navigationcontroller : <p>I'm creating a custom navigation controller. I have something like this:</p>

<pre><code>public class CustomNavigationController: UINavigationController {

    // MARK: - Life Cycle

    override init(rootViewController: UIViewController) {
        super.init(rootViewController: rootViewController)

        delegate = self
    }

    required public init?(coder aDecoder: NSCoder) {
        super.init(coder: aDecoder)
        delegate = self
    }
}
</code></pre>

<p>I wanted to test this out so I created a CustomNavigationController like this:</p>

<pre><code>CustomNavigationController(rootViewController: ViewController())
</code></pre>

<p>When I run the app I get this:</p>

<pre><code>fatal error: use of unimplemented initializer 'init(nibName:bundle:)' for class 'TestApp.CustomNavigationController'
</code></pre>

<p>I don't see the problem, can anyone help me out?</p>
