¿Cómo personalizar la etiqueta de texto UITabBar?
Frecuentes
Visto 1,583 veces
1
1 Respuestas
2
Al acceder a la cuenta del bar item object of the UITabBar
para cada UIViewController
This only works for iOS5.0 or later.
if ([self.tabBarItem respondsToSelector:@selector(setTitleTextAttributes:)]) {
NSLog(@"*** Support method(iOS 5): setTitleTextAttributes:");
[self.tabBarItem setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:
[UIFont fontWithName:@"AmericanTypewriter" size:20.0f], UITextAttributeFont,
[UIColor blackColor], UITextAttributeTextColor,
[UIColor grayColor], UITextAttributeTextShadowColor,
[NSValue valueWithUIOffset:UIOffsetMake(0.0f, 1.0f)], UITextAttributeTextShadowOffset,
nil]];
}
A continuación 5 https://github.com/boctor/idev-recipes/tree/master/CustomTabBar
Respondido el 21 de enero de 13 a las 14:01
No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas ios5 fonts uitabbar uiappearance or haz tu propia pregunta.