Back button appearance for UIBarButtonItem in toolbar?

291 views
Skip to first unread message

Paul Cantrell

unread,
Apr 13, 2010, 12:16:03 AM4/13/10
to iphon...@googlegroups.com
A UIBarButtonItem takes on a left-pointing arrow "back button" appearance when used as the back button in a navigation bar.

Does anybody know if there's a way to make it take on that appearance when it's part of a UIToolbar? I don't think there's a way other than creating custom art, but I thought I'd check.

Cheers,

Paul

Damon Allison

unread,
Apr 13, 2010, 9:35:38 AM4/13/10
to iphon...@googlegroups.com
I looked into this a while back too - and resorted to creating my own artwork. I couldn't find a way to do it.

Damon

> --
> You received this message because you are subscribed to the Google Groups "iphonedevmn" group.
> To post to this group, send email to iphon...@googlegroups.com.
> To unsubscribe from this group, send email to iphonedevmn...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/iphonedevmn?hl=en.
>

Aaron Kardell

unread,
Apr 13, 2010, 11:34:51 AM4/13/10
to iphon...@googlegroups.com
There was a discussion about this on Stack Overflow about how it's against the Human Interface Guidelines and why you shouldn't do it, etc.  That said, you might want to check out the http://github.com/facebook/three20 project - pretty sure there's included support for back buttons.  Probably heavyweight for what you want but might provide a good starting point.

Aaron 

Paul Cantrell

unread,
Apr 13, 2010, 3:37:58 PM4/13/10
to iphon...@googlegroups.com
I've got an iPad app with a top bar similar to the one in the YouTube app which is sort of a nav / tool hybrid. For various reasons it's easier to implement it as a UIToolbar and not a UINavigationBar, but I do want back button art for back button behavior.

three20 is indeed overkill, but maybe I'll check out their code and see how they do it.

Thanks for the confirmation that this isn't supported.

Cheers, P


On Apr 13, 2010, at 10:34 AM, Aaron Kardell wrote:

There was a discussion about this on Stack Overflow about how it's against the Human Interface Guidelines and why you shouldn't do it, etc.  That said, you might want to check out the http://github.com/facebook/three20 project - pretty sure there's included support for back buttons.  Probably heavyweight for what you want but might provide a good starting point.

Aaron 

On Mon, Apr 12, 2010 at 11:16 PM, Paul Cantrell <cant...@pobox.com> wrote:
A UIBarButtonItem takes on a left-pointing arrow "back button" appearance when used as the back button in a navigation bar.

Does anybody know if there's a way to make it take on that appearance when it's part of a UIToolbar? I don't think there's a way other than creating custom art, but I thought I'd check.

Cheers,

Paul

_________________________________________________________________

"Les grandes personnes ne comprennent jamais rien toutes seules,
 et c'est fatigant, pour les enfants, de toujours et toujours
 leur donner des explications."     —Antoine de Saint-Exupéry


Reply all
Reply to author
Forward
0 new messages