hi i am making an tabbar application in which i have 4 tabbars. tabbars are working perfectly, my problem is that the title is overlapping over other tab bar. Title are a bit long like Instructional Videos. how can i fix it.
I'm afraid that's just how it's done -- you may notice that it reduces the font size to try to fit, but it can only do so much.
Here's an alternative: Build the title text into the image to be displayed.
UIImage *textImage = ; int imageTag = 1; // or whatever you want [[UITabBarItem alloc] initWithTitle: @"" image: textImage tag: imageTag];
If you can match the fonts, you can go ahead and put part of your title in the image and part of it in the title, as in:
UIImage *textImage = ; int imageTag = 1; // or whatever you want [[UITabBarItem alloc] initWithTitle: @"Videos" image: textImage tag: imageTag];
It will probably look a bit odd, and Apple might reject your app for it, but it's all I can think of. Unless you are willing to accept the advice "Use a shorter title"?