I'd love to create a "back" left-arrow-bezel button in a UIToolbar
.
As far as I can tell, the only way to get one of these is to leave UINavigationController
at default settings and it uses one for the left bar item. But there's no way I can find to create one as a UIBarButtonItem
, so I can't make one in a standard UIToolbar
, even though they're very similar to UINavigationBar
s.
I could manually create it with button images, but I can't find the source images anywhere. They have alpha-channel edges, so screenshotting and cutting won't get very versatile results.
Any ideas beyond screenshotting for every size and color scheme I intend to use?
Update: PLEASE STOP dodging the question and suggesting that I shouldn't be asking this and should be using UINavigationBar
. My app is Instapaper Pro. It shows only a bottom toolbar (to save space and maximize readable content area), and I wish to put a left-arrow-shaped Back button in the bottom.
Telling me that I shouldn't need to do this is not an answer and certainly doesn't deserve a bounty.
Why are you doing this? If you want something that looks like a navigation bar, use UINavigationBar.
Toolbars have specific visual style associated with them. The Human Interface Guidelines for the iPhone state:
It then gives several visual examples of roughly square icons with no text. I would urge you to follow the HIG on this.
Works for me. I used this when I had more tabs then could fit on the tab bar, and a view controller pushed from the "More" overrode the leftBarButtonItem in its viewDidLoad.
The Three20 library has a way to do this:
To make a UIButton with an arrow pretty close (I'm not a designer ;) to the iOS 7 system back arrow:
Standard:
Apple SD Gothic Neo
In Xcode:
Ref @staticVoidMan's answer to Back-like arrow on iOS 7
If you want to avoid drawing it yourself, you could use the undocumented class: UINavigationButton with style 1. This could, of course, stop your application from being approved... /John
I had a similar problem, and come out one library PButton. And the sample is the back navigation button like button, which can be used anywhere just like a customized button.
Something like this: