Possible Duplicate:
iPhone : making UIBarButtonItem that is arrow shaped
Creating a left-arrow button (like UINavigationBar's "back" style) on a UIToolbar
I have a modal viewController with a navigation bar.
And, I want to create a back button on a modal viewcontroller.
Now, I am aware of the following method :-
[self.delegate dismissModalViewControllerAnimated:YES];
and for now, I’m calling it from a leftBarButtonItem.
But, my problem is exactly that. It’s a leftBarButtonItem that looks like a regular leftBarButtonItem.
While, what I want is a button that looks like a backBarButtonItem with the pointy/arrow-like left side.
EDIT: I have reasons for specifically wanting to use a modal viewController and a back button. Kindly refrain from telling me to not use either one of the two. Thanks.
You would have to fake it with a custom image but in reality that’s breaking the default behavior since the arrow implies navigation but a modal view controller is usually within the context of the current view controller and not moving forward or backwards. Your current solution may be the best.