How to add image and text together in iPhone Navigation bar
-
13-09-2019 - |
Question
How can I add image and text together in an iPhone Navigation bar?
Solution
From a view controller, you can ask for self.navigationController.navigationBar and add subviews to that.
Or, you can wrap image/text into a UIView, and create a UIBarButtonItem with a custom view set to that combination.
OTHER TIPS
For my answer, I'm assuming you want to show an image in the NavBar with the text prompt above it - in which case, you'd be looking to use the prompt property on the UINavigationItem class.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow