This problem has been more distressed, many methods on the Internet is not very good experiment, and today finally solved.
Directly on the code:
CGRect rect = CGRectMake (0,0, self. ) View . Frame . size . width , Self . View . Frame . size . Height );
uigraphicsbeginimagecontext(rect.size);
cgcontextref context =uigraphicsgetcurrentcontext();
cgcontextsetfillcolorwithcolor(context, [[uicolorclearcolor ] cgcolor]);
cgcontextfillrect(context, rect);
UIImage *img = Uigraphicsgetimagefromcurrentimagecontext ();
uigraphicsendimagecontext();
[self. TabBar setbackgroundimage: img];
[self. TabBar setshadowimage: img];
[self. TabBar setbackgroundimage: [UIImageimagenamed: @ "tabbarbg3.jpg"];
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
iOS development Tutorial--How to remove Tabbar top line and set background image