xmartlabs / XLPagerTabStrip

Android PagerTabStrip for iOS.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

hungwei0331 opened this issue · comments

commented

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

navigationController?.navigationBar.isTranslucent = false

commented

navigationController?.navigationBar.isTranslucent = false

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

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

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.