What I'm saying is your overrides are not supported. UIViewController.navigationItem is expected to be used as is.
Hi @Rincewind, this seems to contradict the documentation, which says:
To ensure the navigation item is configured, you can either override this property and add code to create the bar button items when first accessed or create the items in your view controller's initialization code.
In my app, we load (once) a pre-built UINavigationItem from a nib via an outlet and then return it in an override of navigationItem. As of iOS 16 this is working fine and seems to be in compliance with the documentation. Should we worry that this will break at some point?
Topic:
UI Frameworks
SubTopic:
UIKit
Tags: