ltebean / LTNavigationBar

UINavigationBar Category which allows you to change its appearance dynamically
MIT License
4.46k stars 677 forks source link

reset 无效 #10

Closed bluesky0109 closed 9 years ago

bluesky0109 commented 9 years ago

push to other Controller navigationBar color can not set to default

cy1992s commented 9 years ago

I also have this problem,how do you solve?

bluesky0109 commented 9 years ago

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

mahong125 commented 9 years ago

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

ltebean commented 9 years ago

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: https://github.com/ltebean/LTNavigationBar/commit/8bec685468586516a2776ad9411ea311e1305a3a I fixed it by setting the tableView's delegate to nil in viewWillDisappear

zhangliuliu commented 8 years ago

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