I am adding a custom background image to my navigation bar by creating an image view and doing a [navigationController.navigationBar addSubview:imageView].
The background comes in fine. But as soon as I do this, my other navigation items start behaving in a strange manner. Sometimes the navigationItem.title appears, the back button disappears. And this is totally random. Any idea what could be causing this?
Thanks.
When in the view setup process are you adding your subview? You may be doing it after your other nav items have been added, and so it’s covering them. Try either adding it in your -loadView method, or waiting until -viewWillAppear:, and using -sendSubviewToBack: after adding it.