eridbardhaj / EBRoundedTabBarController

Custom TabBarController with a middle rounded button
MIT License
16 stars 1 forks source link

Rounded button goes to the top of the screen on segue #7

Open stockgainsmobile opened 5 years ago

stockgainsmobile commented 5 years ago

When perform a page change and remove the app bar, the bottom rounded button ends up at the top of my screen.

Do you know of any way to control this button. When I actually return to the previous screen the rounded button still sits at the top of the screen.

nb5053 commented 5 years ago

@stockgainsmobile have you found any solution for this issue?

stockgainsmobile commented 5 years ago

I have a custom tab bar and I set up the button each time the view is shown. For example.

override func layoutSubviews() {
        super.layoutSubviews()
        setupMiddleButton()
        middleButton.center = CGPoint(x: UIScreen.main.bounds.width / 2, y: 8)
    }
stockgainsmobile commented 5 years ago

I also use the storyboard to remove the tab bar on view controllers i don't want it to be shown on. I used to actually manually write code to remove the tab bar but found out that on the view controllers inspector on storyboard you can say dont include the story board.