Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reset 无效 #10

Closed
bluesky0109 opened this issue May 13, 2015 · 5 comments
Closed

reset 无效 #10

bluesky0109 opened this issue May 13, 2015 · 5 comments

Comments

@bluesky0109
Copy link

  • (void)viewWillDisappear:(BOOL)animated
    {
    [super viewWillDisappear:animated];
    [self.navigationController.navigationBar lt_reset];
    }

push to other Controller navigationBar color can not set to default

@cy1992s
Copy link

cy1992s commented Jun 17, 2015

I also have this problem,how do you solve?

@bluesky0109
Copy link
Author

I Create a view instead of navigationItem and hide navigationbar in viewWillAppear ,and then contorl the color of created view when scrollview scrolled.

@mahong125
Copy link

lt_reset有问题,望楼主尽快修复bug

@ltebean
Copy link
Owner

ltebean commented Jul 3, 2015

I found the reason, it is because that scrollViewDidScroll still gets called after the view disappears, seems it is bug a in iOS 8. So lt_reset works fine. You can find the fix in this commit: 8bec685
I fixed it by setting the tableView's delegate to nil in viewWillDisappear

@ltebean ltebean closed this as completed Jul 3, 2015
@zhangliuliu
Copy link

I have setted the tableView's delegate to nil in viewWillDisappear,but the reset is still not work

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

No branches or pull requests

5 participants