There's a 1px line underneath the Navigationbar to hide this line so that Navigationbar and the following are connected.
Color
self.navigationController.navigationBar.barTintColor = [Thememanager navicolor];
Clear Shadow
self.navigationController.navigationBar.shadowImage = [UIImage new];
Hide I px buttom line
[Self.navigationController.navigationBar setbackgroundimage:[uiimage new]
Forbarposition:uibarpositionany
Barmetrics:uibarmetricsdefault];
Self.navigationController.navigationBar.translucent = NO;
Then it went to iOS 10. Or the original app, or the original code, push the time navigationbar flashing white stripes.
The question is this sentence
[Self.navigationcontroller.navigationbarsetbackgroundimage:[uiimagenew]
Forbarposition:uibarpositionany
Barmetrics:uibarmetricsdefault];
Change it like this.
Color
self.navigationController.navigationBar.barTintColor = [Thememanager navicolor];
Clear Shadow
self.navigationController.navigationBar.shadowImage = [UIImage new];
if (![ Nsprocessinfo.processinfo isoperatingsystematleastversion: (nsoperatingsystemversion) {9,4,0}]) {
//Hide I px Buttom line
[Self.navigationController.navigationBar setbackgroundimage:[uiimage new]
forbarposition: Uibarpositionany
Barmetrics:uibarmetricsdefault];
}
Self.navigationController.navigationBar.translucent = NO;