|
@@ -412,15 +412,14 @@
|
|
|
|
|
|
- (void)scrollViewDidScroll:(UIScrollView *)scrollView {
|
|
|
CGFloat space = scrollView.contentOffset.y;
|
|
|
- if (space >= kNaviBarHeight) {
|
|
|
+ if (space > 10) {
|
|
|
self.navView.backgroundColor = [UIColor whiteColor];
|
|
|
self.navView.lineView.hidden = NO;
|
|
|
}
|
|
|
else {
|
|
|
self.navView.lineView.hidden = YES;
|
|
|
self.navView.backgroundColor = [UIColor clearColor];
|
|
|
-// CGFloat rate = space / kNaviBarHeight < 0 ? 0 : space / kNaviBarHeight;
|
|
|
-// self.navView.backgroundColor = HexRGBAlpha(0xffffff, rate);
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
|