Comments (2)
在lt_setElementsAlpha方法中,修改“obj.alpha = obj.alpha == 0 ? 0 : alpha”语句为“obj.alpha = alpha”, 可以解决我上述提到的问题,望作者采纳解决~
`- (void)lt_setElementsAlpha:(CGFloat)alpha {
[[self valueForKey:@"_leftViews"] enumerateObjectsUsingBlock:^(UIView *view, NSUInteger i, BOOL *stop) {
view.alpha = alpha;
}];
[[self valueForKey:@"_rightViews"] enumerateObjectsUsingBlock:^(UIView *view, NSUInteger i, BOOL *stop) {
view.alpha = alpha;
}];
UIView *titleView = [self valueForKey:@"_titleView"];
titleView.alpha = alpha;
// when viewController first load, the titleView maybe nil
[[self subviews] enumerateObjectsUsingBlock:^(UIView *obj, NSUInteger idx, BOOL *stop) {
if ([obj isKindOfClass:NSClassFromString(@"UINavigationItemView")]) {
obj.alpha = alpha;
}
if ([obj isKindOfClass:NSClassFromString(@"_UINavigationBarBackIndicatorView")]) {
//
// Modified by ChinaFanny
// (解决push一个controller后,滑动隐藏导航后再滑动显示时返回按钮<系统自带返回按钮>的箭头消失问题)
//
// obj.alpha = obj.alpha == 0 ? 0 : alpha;
obj.alpha = alpha;
}
}];
}`
from ltnavigationbar.
fixed in v2.1.9
from ltnavigationbar.
Related Issues (20)
- _UINavigationBarBackIndicatorView 造成自定义的返回按钮与默认返回按钮同时显示 HOT 1
- 为什么我在使用的时候navigationBar在下拉的时候,颜色由透明变成蓝色的时候,左右按钮都被导航栏的颜色覆盖了?这是为什么呢?求解 HOT 1
- A back button is shown on left side of navigation.
- 问题多多哦 HOT 1
- Crashed on iOS11 HOT 2
- Swift3.0,使用cocoaPods怎么添加?
- iOS 11 崩溃 HOT 2
- “UINavigationItemView” 私有API被禁了, 上架被拒 HOT 1
- 您好,使用了您的框架结果被拒 HOT 2
- iOS11,UINavigationBar拿不到self.subviews了,如何解决? HOT 1
- iOS11 beta版环境下crash
- iOS11 无法获取_titleView HOT 7
- 调用私有api审核被拒审
- 适配iPhone X的导航条显示不全 HOT 3
- 由于iOS11导航栏图层改变产生的问题 HOT 3
- 通过这样判断适配iPhonex导航栏高度显示问题 HOT 1
- 下拉刷新的时候 左右导航按钮会跟着动画,从左到右加载
- 适配iOS11 iPhone X 需要做的 HOT 1
- iOS12 lt_setBackgroundColor can't set navigationBar Color? HOT 1
- 这么好用的库不维护可惜了啊,试用了其他几个都好复杂 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ltnavigationbar.