ios9.0 UITabbar顶部分割线颜色

//改变tabbar 线条颜色
CGRect rect = CGRectMake(0, 0, ScreenWidth, 1);
UIGraphicsBeginImageContext(rect.size);
CGContextRef context = UIGraphicsGetCurrentContext();
CGContextSetFillColorWithColor(context,
                                   RGB(253, 125, 83).CGColor);
CGContextFillRect(context, rect);
UIImage *img = UIGraphicsGetImageFromCurrentImageContext();
    UIGraphicsEndImageContext();
 [self.tabBar setShadowImage:img];

 [self.tabBar setBackgroundImage:[[UIImage alloc]init]];

你可能感兴趣的:(ios9.0 UITabbar顶部分割线颜色)