tag for UITabBarItem

cocoa-touch, iphone, uitabbaritem

Solution

I'm pretty sure you can just leave them all as 0 or any other number you choose. Every UIView can potentially have a different tag, and Interface Builder sets them all to 0 by default. I haven't run into any problems with this.

Problem

When I use the this method to initialize a `UITabBarItem`: ``` - (id)initWithTitle:(NSString *)title image:(UIImage *)image tag:(NSInteger)tag ``` Do I need to have a distinct tag for each tab bar item, or (since I don't use them) can I simply use the same tag value for all of them?

Original source