Commit 02e4528c cgx

优化我的页面导航栏显示(去掉模糊渐变效果)

1 个父辈 afbd2146
......@@ -144,7 +144,7 @@
self.tableHeaderView = self.profileHeaderView;
self.tableFooterView = self.footerView;
self.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
[self registerClass:[ProfileCell class] forCellReuseIdentifier:NSStringFromClass([ProfileCell class])];
[self registerClass:[ProfileCell class] forCellReuseIdentifier:NSStringFromClass([ProfileCell class])];
}
return self;
}
......@@ -203,13 +203,13 @@
#pragma mark - UIScrollViewDelegate
- (void)scrollViewDidScroll:(UIScrollView*)scrollView {
CGFloat offset = scrollView.contentOffset.y;
if (offset >= 0) {
if (self.profileDelegate && [self.profileDelegate respondsToSelector:@selector(showNaviBar:)]) {
[self.profileDelegate showNaviBar:offset/kTopHeight(0)];
}
}
if (self.profileDelegate && [self.profileDelegate respondsToSelector:@selector(isUpdateStatusStyle:)]) {
[self.profileDelegate isUpdateStatusStyle:(offset >= 2 ? YES : NO)];
if (offset > 0) {
[self.profileDelegate showNaviBar:1.0];
[self.profileDelegate isUpdateStatusStyle:YES];
} else {
[self.profileDelegate showNaviBar:0.0];
[self.profileDelegate isUpdateStatusStyle:NO];
}
}
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!