Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- Xcode
- 적절한 사용방법
- bounds이해
- Structural Identity
- Spring
- ios
- lazy 위험성
- Quick Help
- spring guide
- ios login
- consuming a restful web service
- git branch strategy
- WWDC21
- lifecycle
- Demystify SwiftUI
- Your app is missing support for the following URL schemes: your_ios_client_id
- schemes
- Lifetime of SwiftUI
- 보라색오류
- developer
- Identity
- lazy 사용
- xml delegate
- Explict Identity
- Lazy
- swift
- TabBarItems
- view
- native개발
- frame이해
Archives
- Today
- Total
목록TabBarItems (1)
Dev_Dylan

TabBarController는 ViewControllers에 ViewController를 담아주면 순서대로 탭바에 쌓이게 된다. 5개의 ViewController가 있을 때, 왼쪽부터 순서대로 적용이 된다. 위 사진처럼 App을 실행하게 된다면, 0번 index의 Tab이 먼저 보여진다. SelectedIndex를 사용하여 ViewDidLoad가 될 때(혹은 어떤 Action이 있을 때) 원하는 탭으로 보여질 수 있다. SelectedIndex var selectedIndex: Int { get set } 설정(set) 이 가능하기 때문에 원하는 Index로 변경해주면 된다. 아래와 같이 App실행시 가운데(3번째) Tab이 설정되게 하기위해서, 3번째 즉 index = 2로 설정해주면 된다 self...
iOS
2023. 12. 18. 19:13