일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
- ios
- Alamofire
- swipe
- UITabBarController
- Android
- 다크모드
- autolayout
- github
- RxSwift
- NavigationLink
- 문자열
- subscript
- Realtime Database
- Java
- 웹뷰
- Observable
- string
- UIButton
- UIScrollView
- SwiftUI
- Firebase
- dictionary
- Swift
- LazyHStack
- gcd
- WebView
- Apple
- SwiftLint
- 라이트모드
- remote config
- Today
- Total
목록UITabBarController (4)
점진적 과부하 개발 블로그

UITabBarController와 TabView의 차이점 코드 비교 UIKit import UIKit class FirstViewController: UIViewController {} class SecondViewController: UIViewController {} class TabBarController: UITabBarController { override func viewDidLoad() { super.viewDidLoad() let firstViewController = FirstViewController() firstViewController.tabBarItem = UITabBarItem( title: "첫번째 화면", image: UIImage(systemName: "person"), ..

Swift 인스타그램 UI 클론 코딩(2) Swift 인스타그램 UI 클론 코딩(1) Swift 인스타그램UI 클론 코딩 프로젝트 생성 프로젝트를 생성합니다. Interface는 Storyboard로 선택해줍니다. Storyboard 삭제 Interface는 Storyboard로 설정하였지만 UI는 코드로 작성할 것이기 때문에 MainS.. wlqkr.tistory.com TabBarController 구현 TabBarController를 구현할 TabBarController이라는 이름에 Swif file을 만들겠습니다. 처음에 앱이 실행될 때 TabBarController가 rootViewController가 되야 하기 때문에 SceneDelegate를 수정하겠습니다. window?.rootViewCo..

UITabBarController 구현해보기 Mainstoryboard 삭제 코드만 이용해서 할 것이기 때문에 메인스토리보드는 삭제를 해줍니다. UITabBarController.swift cmd를 누른 상태에서 class를 누르면 많은 옵션들이 뜨는데 그 중 Rename을 선택한다. Rename을 선택하고 이름을 변경하면 class의 관련된 모든 이름이 한번에 변경이 된다. import UIKit class TabBarController: UITabBarController { private lazy var todayViewController: UIViewController = { // 임의로 만들어 둠 let viewController = UIViewController() let tabBarItem =..

UITabBarController에 대해 알아보겠습니다. TabBar란? 아래와 같이 탭으로 기능을 동작시켜주는 녀석을 TabBar라 합니다. TabBar안에 있는 각각의 버튼들을 TabBarItem이라고 합니다. UITabBarController란? 다중 선택 인터페이스를 관리하는 컨테이너 뷰 컨트롤러로, 선택에 따라 어떤 자식 뷰 컨트롤러를 보여줄 것인지 결정을 해준다. UIViewController를 상속받는 클래스이므로 View속성을 갖는다. https://developer.apple.com/documentation/uikit/uitabbarcontroller/ 만들어보기 shift + cmd + l 을 눌러서 Tab Bar Controller를 추가해보겠습니다. 생성 후 같이 만들어진 Item ..