123456789101112131415161718192021222324 |
- //
- // UIViewController+Extension.m
- // smkj
- //
- // Created by 翟玉磊 on 2018/5/28.
- // Copyright © 2018年 翟玉磊. All rights reserved.
- //
- #import "UIViewController+Extension.h"
- @implementation UIViewController (Extension)
- /**
- 是否显示导航条的分割线
- @param isShow YES显示 NO隐藏
- */
- - (void)hiddenCurrentNavLineWithShow:(BOOL)isShow {
-
- UIView *backgroundView = [self.navigationController.navigationBar subviews].firstObject;
- UIView *navLine = backgroundView.subviews.firstObject;
- navLine.hidden = !isShow;
- }
- @end
|