Skip to content
This repository has been archived by the owner on Apr 24, 2022. It is now read-only.

hide navigation bar #118

Open
dfing opened this issue Apr 9, 2015 · 1 comment
Open

hide navigation bar #118

dfing opened this issue Apr 9, 2015 · 1 comment

Comments

@dfing
Copy link

dfing commented Apr 9, 2015

I use tableView in each contentView and I put it all in navigationController.
s__5201930

when I scroll the tableView, according to scrollView.contentOffset.y, I hide/show my navigation bar.
use [self.navigationController setNavigationBarHidden:YES animated:YES]; in the tableViewController
In most of the time, It work fine. like this
s__5201931

BUT sometime, it will work break, like this
s__5185538
the navigation bar has hidden, but the tabs view not change it's contentOffset.y
It seem to happen when I scroll the tableView first.

My question is that It's the lib bug or I write wrong code?

@dfing
Copy link
Author

dfing commented Apr 9, 2015

I found that first scroll the tableview, the layoutSubviews in ViewPagerController not work, even I call it.

ViewPagerController *vpc = (ViewPagerController *)self.parentViewController;
[vpc.view setNeedsLayout];

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant