views:

552

answers:

3

Hello,

is it possible to create a UIToolBar containing UIBarItems with both, images and titles for better explaining the function behind the item? A UITabBar is designed to select 1 of n items. The current item is highlighted. This is not what I need. I'm needing to call a function without selecting the current toolbat item!

A: 

i may be understanding your question wrong, but isn't that the default behaviour of UITabBar?

EDIT: w. comments

It wouldn't be too hard to subclass UIViewController with a UIView containing UIButtons & UILabels to suit your needs.

pxl
Yes, but UITabBar is designed to select 1 from n.The current item is highlighted. This is not what I need.I'm needing to call a function without selecting the current toolbat item
squeezer123
ah, i c. you should update your question to include this extra info.
pxl
Thank for your hint!
squeezer123
A: 

No. The toolbar is not designed to have both an image and a text tag.

Marcus S. Zarra
+1  A: 

I am not sure I undertand the question, but if you want to add an image to the UINavigationBar Button then you cannot do that. You can however, add a background image to this button and pad your text with spaces: http://discussions.apple.com/thread.jspa?threadID=1649012&tstart=0

Edit: also see this: http://stackoverflow.com/questions/227078/creating-a-left-arrow-button-like-uinavigationbars-back-style-on-a-uitoolbar

Nir Levy