Skip to content

Commit

Permalink
REFACT :: [#365] 화면 전환 에러 수정
Browse files Browse the repository at this point in the history
화면 전환시 탭바가 없어지는 현상 해결
  • Loading branch information
Eunho0922 committed Jul 25, 2024
1 parent 523ee1f commit 728da82
Showing 1 changed file with 10 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,17 @@ public class PostureSearchViewController: BaseViewController<PostureSearchViewMo
}

public override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
navigationController?.setNavigationBarHidden(true, animated: animated)
}

public override func viewWillDisappear(_ animated: Bool) {
super.viewWillDisappear(animated)
if isMovingFromParent || navigationController?.isBeingDismissed == true {
navigationController?.setNavigationBarHidden(false, animated: animated)
}
super.viewWillAppear(animated)
navigationController?.setNavigationBarHidden(true, animated: animated)
}

public override func viewWillDisappear(_ animated: Bool) {
super.viewWillDisappear(animated)
if isMovingFromParent || navigationController?.isBeingDismissed == true {
navigationController?.setNavigationBarHidden(false, animated: animated)
}
tabBarController?.tabBar.isHidden = false
}

override public func layout() {
super.layout()
Expand Down

0 comments on commit 728da82

Please sign in to comment.