xmartlabs / XLPagerTabStrip

Android PagerTabStrip for iOS.
MIT License
6.97k stars 1.32k forks source link

[HELP] buttonBarView be covered by navigationBar, and wired default color #828

Closed hungwei0331 closed 3 years ago

hungwei0331 commented 3 years ago
Screen Shot 2021-07-05 at 1 14 41 AM Screen Shot 2021-07-05 at 1 08 02 AM

I am sorry I know there has few same issus before,

but the solutions are several years ago,

I created the sample step by step like offical example,

but the bug still appear, had try many ways but still could not resolve it,

the buttonBarView be covered by navigationBar

even I know I could correct it like below

in viewDidload add, edgesForExtendedLayout = []

but this line will make tabBarr and navigationBar get strage color like the image below,

and this color can not be remove completely

Screen Shot 2021-07-05 at 1 14 48 AM

also try modified buttonBarView.frame.origin.y,

but the scroll view seems like could not modified the y value as same way

hope someone could help me this question, thanks in advance for any reply

wonjulee-ios commented 3 years ago

navigationController?.navigationBar.isTranslucent = false

hungwei0331 commented 3 years ago

navigationController?.navigationBar.isTranslucent = false

thank you so much, add both of line below in viewDidLoad works well for me

edgesForExtendedLayout = [] navigationController?.navigationBar.isTranslucent = false

usmanabid94 commented 2 years ago

navigationController?.navigationBar.isTranslucent = false

thank you so much, add both of line below in viewDidLoad works well for me

edgesForExtendedLayout = [] navigationController?.navigationBar.isTranslucent = false

You are a saviour it worked completely fine. Thank you.