I have to create a UIBarButton on the having a globe and a text "Map" written on it.
What I have done:
- I have added a UIButton with the image of the globe as backgroundImage.
- Set the text on the button.
- Then created a UIBarButton initWithCustomView from the above button.
- Given it style as Bordered.
Result:
Now what i got is a plane button with the globe image stretched on that which is overlapping with the Text in it.
I have searched for this a lot but i only found links which show the image in background and the text above the button. Nothing like the image and text together.
Can anyone help me in creating it the way it is shown in the attachment.