Vertically-aligned button as UINavigationItem's titleView

I’m desperately trying to add a vertically-aligned button with image on top of the title as the titleView of a navigation bar. I would like the size of the image in the button to be fixed and the image to be scaled to fill it. Basically, I’m trying to reproduce what you have in Tinder’s conversation navigation bar. Unfortunately, as soon as I add an image to my button, it seems to remove the title, and the image takes the whole available width of the navigation bar. Has anybody here done something like that before?


Replies

Some did it:


https://stackoverflow.com/questions/27499998/how-to-set-image-for-bar-button-with-swift


I don't know about Tinder example, but may be the text is part of the image ?