๐ ํ์ต ๋ด์ฉ
- homeVC์์ navigationController๋ก ๋ค๋ฅธ ๋ทฐ๋ก ๋์ด๊ฐ ๋, ํญ ๋ฐ๊ฐ ์์ ํ ์ฌ๋ผ์ง์ง ์์ ๋ทฐ๋ ๋ํ๋์ง ์์ง๋ง, ๋ ์ด์์์ ๊ทธ๋๋ก ์ ์ง๋๋ ํ์ ๋ฐ์
- tabBarController?.tabBar.isHidden = true ์ฌ์ฉ์
- ViewController์ hidesBottomBarWhenPushed ์์ฑ์ผ๋ก ํญ ๋ฐ๋ฅผ ์์ ํ ์จ๊ธธ ์ ์์
- nextVC.hidesBottomBarWhenPushed = true
func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) {
switch collectionView {
case homeView.justDropCollectionView :
let nextVC = DetailViewController()
nextVC.hidesBottomBarWhenPushed = true
navigationController?.pushViewController(nextVC, animated: true)
default:
let nextVC = DetailViewController()
navigationController?.pushViewController(nextVC, animated: true)
}
}
๐ ์ฐธ๊ณ ์๋ฃ
'Swift' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
Swift - ์นด์นด์ค ๋ก๊ทธ์ธ ๊ตฌํ (1) | 2024.11.13 |
---|---|
Swift - CollectionView - ์ ํํ ์ UI ๋ณ๊ฒฝ (0) | 2024.11.11 |
Swift - UIView ์๋จ์๋ง ํ ๋๋ฆฌ(border) ๋ฃ๊ธฐ (0) | 2024.11.04 |
Swift - viewDidLayoutSubviews() (0) | 2024.10.20 |
Swift - UISegmentControl, Content Width ์กฐ์ ๋ฐฉ๋ฒ (1) | 2024.10.20 |