일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- 썸머노트
- 코딩입문
- Aspose.cells
- 스크래치코딩
- MSSQL
- .csv
- swift 화면전환
- 파이썬입문
- 일본여행
- MYSQL
- upbit
- Kakao API Address
- ASP.NET MVC
- 업비트
- league of legends
- Android
- 엔트리
- 초딩수학
- httpclient timeout
- 오블완
- python
- 블록코딩
- PromptEngineering
- AIoptimization
- Excel
- 나만의 상점
- chart.js
- largelanguagemodels
- 한글깨짐
- MS-SQL
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