An open API service indexing awesome lists of open source software.

https://github.com/below/navigationcontrollersample

A sample to illustrate a question about UINavigationController
https://github.com/below/navigationcontrollersample

Last synced: about 1 year ago
JSON representation

A sample to illustrate a question about UINavigationController

Awesome Lists containing this project

README

          

# NavigationControllerSample
A sample to illustrate a question about UINavigationController

## Objective
I want to initialize a `UINavigationController`, but with my standard set of view controllers. For this reason, I'd like to give users of my class `CustomViewController` just a simple `init()`. But when I call `super.init(rootController:)` in the initializer, the app crashes.

* Am I doing it wrong?

* What would be the best way to achieve this?