[[Uitabbaritem appearance] settitletextattributes:@{uitextattributetextcolor: [Uicolor BlackColor], Uitextattributefont:[uifont fontwithname:@ "Marion-italic" size:14.0]} Forstate:uicontrolstatenormal];
Settings for Uicontrostate:
UIControlStateNormal: When not selected;
uicontrolstatehighlighted: When selected;
Text on navigation and tabbar. Picture
[Self.navigationController.tabBarItem Settitlepositionadjustment:uioffsetmake (15,-10)];
Uitabbaritem.imageinsets
navigation Bottom Line Color
[self. Navigationcontroller. Navigationbar setbackgroundimage: [self imagewithcolor: [uicolor Clearcolor]]
forbarposition:uibarpositionany
barmetrics:uibarmetricsdefault];
[self. Navigationcontroller. Navigationbar setshadowimage: [UIImage new]];
returns a solid color picture
-(UIImage *) Imagewithcolor: (uicolor *) color
{
cgrect rect = cgrectmake(0.0f, 0.0f, 1.0f, 1.0f);
uigraphicsbeginimagecontext(rect.size);
cgcontextref context = uigraphicsgetcurrentcontext();
Cgcontextsetfillcolorwithcolor(context, [color cgcolor]);
Cgcontextfillrect(context, rect);
UIImage *image = uigraphicsgetimagefromcurrentimagecontext();
Uigraphicsendimagecontext();
return image;
}
Text on navigation and tabbar. Image customization