Echilon
Echilon

Reputation: 10244

Custom Toolbar With Images

I'm planning to implement a custom toolbar using my own images. Something more or less exactly like this or this. What would be required to do this. Could I just derive a control from UIView, then create another subclass to display the actual toolbar items and handle all the drawing myself in drawRect, or would it be better to make use of standard UIKit controls to handle the drawing of the images?

Upvotes: 1

Views: 563

Answers (2)

Echilon
Echilon

Reputation: 10244

The only way to get this to work the way I wanted was to use a custom control.

Upvotes: 0

karstux
karstux

Reputation: 1492

You can use a standard UITabBar - it is very customizable. You can set a custom backgroundImage and selectionIndicatorImage to completely change its looks. On the UITabBarItems, you can control the appearance using the finishedSelectedImage and finishedUnselectedImage properties.

Hope it helps, and good luck!

Upvotes: 2

Related Questions