일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- AIoptimization
- 코딩입문
- cc챔피언
- 블록코딩
- 아이코딩습관
- 중학생코딩
- ASP.NET MVC
- Aspose.cells
- .csv
- 썸머노트
- MS-SQL
- chart.js
- httpclient timeout
- largelanguagemodels
- swift 화면전환
- Kakao API Address
- 일본여행
- 한글깨짐
- 오블완
- upbit
- PromptEngineering
- league of legends
- 초딩수학
- 엔트리
- python
- 중1코딩
- MSSQL
- Excel
- Android
- MYSQL
Archives
- Today
- Total
DBA
화면전환 : Navigation Controller 본문
728x90
반응형
SMALL
ViewController를 선택하고 xcode의 Editor > Embed In > Navigation Controller를 선택해서 Navigation Controller를 추가 한다.
[ViewController.swift]
@IBAction func onClickedSecondViewControllerNavigation(_ sender: UIButton) {
let vcSecond = self.storyboard?.instantiateViewController(withIdentifier: "vcSecond")
self.navigationController?.pushViewController(vcSecond!, animated: true)
}
withIdentifier: SecondViewController의 Storyboard ID Navigation Controller 를 사용 하면 왼쪽 상단에 Back버튼이 생성 되므로 따로 돌아가기 버튼을 추가 할 필요는 없다. |
728x90
반응형
LIST
Comments