PESTabBarAddition is a pair of classes I wrote to make it easy to customize the tabbed iPhone interface. Its a common complaint that you can’t change the color of affect on the icons in the tab bar, or use text instead of images, or use different views for selected or unselected states, or make anything but the most trivial changes to the basic UINavBar. These classes make it easy to do that with no coding. They’re licensed under the BSD license, so do what you’d like to them, no worries.
Its a bit hackish. Heres how it works:
- you just remove the system icons from the UITabBar through Interface Builder
- You pass the:
- (id)initWithTabBar:(UITabBar *)tb andItems:(NSArray *)it;
method an array of arrays that contain an on and off state UIViews
- The classes superimpose the UIViews you pass it on top of the UITabBarItems and pass any touches they receive up the responder chain, so the tabs still work like normal.
I’ve also put together a tiny sample application to show how the classes are used. You can download it here.
Jesus I’m tired. Its time to go to sleep…