일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- league of legends
- upbit
- Android
- 엔트리
- MS-SQL
- swift 화면전환
- python
- MSSQL
- 블록코딩
- chart.js
- 한글깨짐
- 오블완
- 코딩입문
- Kakao API Address
- Aspose.cells
- Excel
- 중학생코딩
- PromptEngineering
- ASP.NET MVC
- largelanguagemodels
- AIoptimization
- 일본여행
- 아이코딩습관
- 중1코딩
- httpclient timeout
- .csv
- cc챔피언
- 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