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
- Host: GitHub
- URL: https://github.com/below/navigationcontrollersample
- Owner: below
- License: mit
- Created: 2019-07-09T17:34:48.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-07-09T17:40:41.000Z (over 6 years ago)
- Last Synced: 2025-01-26T02:44:13.656Z (about 1 year ago)
- Language: Swift
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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?