CGRect rect = CGRectMake(0, 0, SCREENWIDTH, SCREENHEIGHT);
UIGraphicsBeginImageContext(rect.size);
CGContextRef context = UIGraphicsGetCurrentContext();
CGContextSetFillColorWithColor(context, [[UIColor clearColor] CGColor]);
CGContextFillRect(context, rect);
UIImage *img = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
[TBC.tabBar setBackgroundImage:img];
[TBC.tabBar setShadowImage:img];
tabbar顶部横线
最新推荐文章于 2023-11-25 23:31:04 发布