LTNavigationBar
LTNavigationBar copied to clipboard
UINavigationBar Category which allows you to change its appearance dynamically
最新的demo中,从第一个标签页导航栏透明的情况下跳转到一共空白页面,滑动返回,空白页面的导航栏也是白的。
`[self.navigationController.navigationBar lt_setBackgroundColor:[color orangeColor]]; ` in iOS12 will display clearColor
Hey, Itebean, LTNavigationBar is really a simple and great library, don't let it down. I spent some time to make it work on iOS 11 and 12. Also I have...
self.overlay = [[UIView alloc] initWithFrame:CGRectMake(0, 0, CGRectGetWidth(self.bounds), NAVIGATION_BAR_HEIGHT)]; 这里要根据机型判断这个高度是多少
``` - (void)lt_setBackgroundColor:(UIColor *)backgroundColor { if (!self.overlay) { [self setBackgroundImage:[UIImage new] forBarMetrics:UIBarMetricsDefault]; //适配iPhoneX CGFloat navigationBarHeight = 0; if ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(1125, 2436), [[UIScreen mainScreen] currentMode].size) : NO) { navigationBarHeight...
下拉刷新的时候 左右导航按钮会跟着动画,从左到右滑动加载,请问这个怎么处理?
- (void)lt_setTitleAlpha:(CGFloat)alpha { if (@available(iOS 11.0, *)) { } else { UIView *titleView = [self valueForKey:@"_titleView"]; titleView.alpha = alpha; } }