Don't talk much, just look at the sample code
'//Uiimageview *imageview = [[Uiimageview alloc]initwithframe:cgrectmake (0, 0, KSCREENW, Tabbarheight + 5)];
[ImageView setimage:[self Createimagewithcolor:[uicolor Clearcolor]];
[ImageView Setcontentmode:uiviewcontentmodescaletofill];
[Self.tabbar Insertsubview:imageview atindex:0];
Upper horizontal line covering primary tabbar//[[Uitabbar appearance] setshadowimage:[self Createimagewithcolor:[uicolor Clearcolor]];
Background picture is transparent color//[[Uitabbar appearance] setbackgroundimage:[self Createimagewithcolor:[uicolor Clearcolor]];
Self.tabBar.backgroundColor = [Uicolor Clearcolor];
Set to semitransparent self.tabBarController.tabBar.translucent = YES;
"'-(uiimage*) Createimagewithcolor: (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 *theimage = UigraphicsgetimagefromcurrentimagecOntext ();
Uigraphicsendimagecontext ();
return theimage; }
```
These are the full contents of the Tabbar in iOS to implement a custom transparent background, and hopefully this article will help.