Background chromatic aberration, the reason is that if the simple setting background color also has the effect of Gaussian blur, the solid color Gaussian blur after the equivalent of a solid color 70% (guess) transparent processing, but the color is bad anyway.
Workaround One:
Through the picture method
[Self.navigationController.navigationBar setbackgroundimage:[uiimage imagenamed:@ "navigation_ BackgroundImage"] forbarmetrics:uibarmetricsdefault];
Method Two:
Self.navigationController.navigationBar.translucent = NO; // bar Blur effect, default is Yes
Below black border elimination method:
[[Uinavigationbar appearance] Setbackgroundimage:[[uiimage alloc] init] forbarposition:uibarpositionany barMetrics: Uibarmetricsdefault]; [[Uinavigationbar appearance] Setshadowimage:[[uiimage alloc] init];
To set a shadow:
[[Uinavigationbar appearance] Setshadowimage:[[uiimage alloc] init];
About Navigationbar background chromatic aberration problem with black border below solution