탭바 숨기기
by Seoyeong
탭바를 숨길 때 해당 뷰에서
self.tabBarController?.tabBar.isHidden = true
를 하게 되면 네비게이션 제스쳐 할 때 탭바는 지워지지만 영역은 남게된다,
이러한 문제를 해결하기 위해 찾아본 결과 화면을 전환할때 ‘hidesBottomBarWhenPushed’ 를 이용하면 깔끔하게 숨길수 있다.
let nextVC = NextVC()
nextVC.hidesBottomBarWhenPushed = true
self.navigationController?.pushViewController(nextVC, animated: true)
Subscribe via RSS