squeezer123
squeezer123

Reputation: 191

UIToolbar with images and titles like UITabBar

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!

Upvotes: 0

Views: 1641

Answers (3)

Nir Levy
Nir Levy

Reputation: 4740

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: Creating a left-arrow button (like UINavigationBar's "back" style) on a UIToolbar

Upvotes: 1

pxl
pxl

Reputation: 1297

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.

Upvotes: 0

Marcus S. Zarra
Marcus S. Zarra

Reputation: 46718

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

Upvotes: 1

Related Questions