关于导航栏与view之间有一条线的问题

问题如图,去掉横线

关于导航栏与view之间有一条线的问题_第1张图片
问题图片.png

解决方案

self.navigationController.navigationBar.translucent=NO; 
[self.navigationController.navigationBar setBackgroundImage:[UIImage new] forBarMetrics:UIBarMetricsDefault];
self.navigationController.navigationBar.shadowImage=[UIImage new];

解决之后

关于导航栏与view之间有一条线的问题_第2张图片
解决图片.png

你可能感兴趣的:(关于导航栏与view之间有一条线的问题)