Back-like arrow on iOS 7

johnyu picture johnyu · Dec 19, 2013 · Viewed 10.6k times · Source

I need to add a left bar button item in my app that looks like system back button, but is not the system back button, since it will appear on view controller that is the only vc of my navController's stack and execute my own code. Simply writing "Back" isn't really good for me, as I need to display the "<" arrow as well. Is there a way to programmatically create an arrow like that, without making image with that arrow?

This is how it's supposed to look like

Answer

staticVoidMan picture staticVoidMan · Dec 19, 2013

You can use any Unicode character (anywhere in your code) for this.

You can find what you want here:

Xcode > Edit > Special Characters...

Search for arrow or back or browse the categories.
Then copy paste the character where required (in the XIB object's title or in the setTitle or setText methods like any other character)

something like: enter image description here