成品直播源码推荐,去掉导航条和tabbar线条
成品直播源码推荐,去掉导航条和tabbar线条
去掉导航条底部线条
[self.navigationController.navigationBar setBackgroundImage:[[UIImage alloc] init] forBarMetrics:UIBarMetricsDefault];
[self.navigationController.navigationBar setShadowImage:[[UIImage alloc] init]];
去掉tabbar顶部线条
// tabbar里面有三个内置的image:背景图片、选中时图片、阴影图片,然后修改这三个image
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线条,更多内容欢迎关注之后的文章