티스토리 뷰
왕초보를 위한 iOS 앱개발 - 야곰닷넷
코딩의 '코'자를 몰라도 시작해 볼 수 있는 iOS 앱만들기! 왕초보를 위한 iOS 앱개발 입문편입니다.
yagom.net
6. 화면전환
Lesson6 Topics
- Creating a New Scene
- Composing Credit View
- Challenge - Adding Constraints
- Storyboard Segue
- Writing a Close Button Method
- Challenge - Connecting the Button Action
- Running the App on My Device
- Where to Go from Here?
- Wrapping Up
6-1. 새로운 화면 만들기
Credit View 만들기
- 파일 만들기
- New file > Cocoa Touch Class
- Class: CreditViewController
- Subclass of: UIViewController
- Main.stroyboard
- 라이브러리로 ViewController 생성
- 요소 클릭 후 Class를 UIViewController로 지정
6-2. 만든이 소개화면 구성하기
*Human Interface Guidelines for iOS *
- Text Field: 한줄 입력
- Text View: 여러줄 입력, 자동으로 스크롤 생성
- 사진 6-2
결과물
사진 6-2-1
6-3. [도전!] 오토 레이아웃 제약추가
- 자유롭게 실습해보자
6-4. 스토리보드 세그(Segue)
- Ctrl + 마우스 클릭
6-5. 닫기 버튼 기능구현
버튼 Method
@IBAction func touchUpDismisButton(_ sender: UIButton) {
dismiss(animated: true, completion: nil)
}
6-6. [도전!] 버튼 액션 연결
- Main.stroyboard
- 연결할 페이지의 ViewController 클릭
- 만들어준 touchUpDismisButton() 연결
6-7. 내 기기에서 실행해보기
6-9. 레슨6 정리
Wrapping Up
- Changing value to another type
- String Interpolation
- Comparing Values
- Challenge - Comparing Values
- Terminating functions
- Conditional execution
- Showing Alerts
- Wrapping Up
To-Do List
- Add Slider
- Add 'HIT Button'
- Receive value changed events from the slider
- Add 'RESET Button'
- Add labels presentin information
- Generate the random number
- Compare the random number with input number
- Show alerts
- Implement 'reset' feature
- Add 'Credit' view
'iOS' 카테고리의 다른 글
오토레이아웃 정복하기#1 (0) | 2021.04.01 |
---|---|
[iOS] 왕초보를 위한 iOS 앱개발 5 (0) | 2021.03.12 |
[iOS] 왕초보를 위한 iOS 앱개발 4 (0) | 2021.03.12 |
[iOS] 왕초보를 위한 iOS 앱개발 3 (0) | 2021.03.12 |
[iOS] 왕초보를 위한 iOS 앱개발 1~2 (0) | 2021.03.11 |
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- enumerations
- swift
- 오토레이아웃
- 삼항연산자
- 산술연산자
- variables
- playground
- 구문이름표
- datatypes
- 결합성
- 범위연산자
- labeled
- optional
- 훈련법
- overflow
- RawValues
- 전산구문 기초용어
- iOS View Life Cycle
- continue
- 비트연산자
- conditional
- 세자리수마다 콤마넣기
- 옵셔널
- scope
- 흐름제어구문
- 반복문
- Constants
- 객체지향 생활체조
- 오버플로우연산자
- Functions
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함