Changing font size of tabbaritem

4thSpace picture 4thSpace · Apr 5, 2010 · Viewed 33.3k times · Source

Is it possible to change the font size of tabs?

Answer

Cancer86 picture Cancer86 · Dec 28, 2011

I recommend a better way:

[yourTabBarItem setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:
    [UIColor whiteColor], UITextAttributeTextColor, 
    [NSValue valueWithUIOffset:UIOffsetMake(0,0)], UITextAttributeTextShadowOffset, 
    [UIFont fontWithName:@"Helvetica" size:18.0], UITextAttributeFont, nil]
    forState:UIControlStateNormal];