Jiar / SegementSlide

Multi-tier UIScrollView nested scrolling solution. 😋😋😋
https://blog.jiar.me/2019/02/13/Multi-tier-UIScrollView-nested-scrolling-solution/
Apache License 2.0
1.3k stars 158 forks source link

shadow on navigationbar #47

Open AppleTTT opened 4 years ago

AppleTTT commented 4 years ago

when we push to another viewController,there is black or white shadow on navigationbar.

  1. change the MineViewController headerView to another color picture,like blue
  2. push a normal Controller(called TestViewController) from MineViewController 3.pop TestViewController through right slide or pop method 4.u can see a shadow on the navigationBar

guess: the navigationBar‘s isTranslucent property is true

I change the property to false when viewWillDispear, but no use

can u help me,thx

AppleTTT commented 4 years ago

IMG_0775

just like this

JustinTsouDeveloper commented 4 years ago

I have same problem...

Jiar commented 4 years ago

It is because using TransparentSlideViewController, you can view the TransparentSlideViewController code, including on the navigationBar processing. If the handling of the navigationBar cannot meet the demand of TransparentSlideViewController, can inherit SegementSlideViewController achieve the effect of the custom.

Jiar commented 4 years ago

Or you can try to modify the way of implementation of TransparentSlideViewController, and submit a pull request.😉