// 导航条分割线
@property (nonatomic, strong) UIView *navSeparateView;
// 获取导航条分割线
UIView *backgroundView = [self.navigationController.navigationBar subviews].firstObject;
for (UIView *view in backgroundView.subviews) {
if (CGRectGetHeight([view frame]) <= 1) {
_navSeparateView = view;
}
}
    // 隐藏导航条分割线
_navSeparateView.hidden = YES;
05-07 12:25