swift 시작하기 - github pages · 2019-09-28 · ios 개발 ios 및 ... 관련 전공생䯽...

8
Swift 시작하기 yagom

Upload: others

Post on 13-Mar-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Swift 시작하기 - GitHub Pages · 2019-09-28 · iOS 개발 iOS 및 ... 관련 전공생䯽 •다른 언어를 사용해 본 프로그래머䯽 •(객체지향) 프로그래밍

Swift 시작하기yagom

Page 2: Swift 시작하기 - GitHub Pages · 2019-09-28 · iOS 개발 iOS 및 ... 관련 전공생䯽 •다른 언어를 사용해 본 프로그래머䯽 •(객체지향) 프로그래밍

yagom

iOS 개발

iOS 및 프로그래밍 교육

http://blog.yagom.net

Page 3: Swift 시작하기 - GitHub Pages · 2019-09-28 · iOS 개발 iOS 및 ... 관련 전공생䯽 •다른 언어를 사용해 본 프로그래머䯽 •(객체지향) 프로그래밍

코스 수강 대상

• 프로그래밍에 대한 기초지식이 있는 컴퓨터관련 전공생

• 다른 언어를 사용해 본 프로그래머

• (객체지향) 프로그래밍 경험자

Page 4: Swift 시작하기 - GitHub Pages · 2019-09-28 · iOS 개발 iOS 및 ... 관련 전공생䯽 •다른 언어를 사용해 본 프로그래머䯽 •(객체지향) 프로그래밍

Swift 사용환경

• macOS

• Ubuntu

https://swift.org/download/

Page 5: Swift 시작하기 - GitHub Pages · 2019-09-28 · iOS 개발 iOS 및 ... 관련 전공생䯽 •다른 언어를 사용해 본 프로그래머䯽 •(객체지향) 프로그래밍

Contents

• Swift 기본 문법

• iOS / macOS 등 애플리케이션 제작을 위한 프레임워크 관련

Page 6: Swift 시작하기 - GitHub Pages · 2019-09-28 · iOS 개발 iOS 및 ... 관련 전공생䯽 •다른 언어를 사용해 본 프로그래머䯽 •(객체지향) 프로그래밍

Swift

• Apple

• Open Source

• macOS, Ubuntu

Page 7: Swift 시작하기 - GitHub Pages · 2019-09-28 · iOS 개발 iOS 및 ... 관련 전공생䯽 •다른 언어를 사용해 본 프로그래머䯽 •(객체지향) 프로그래밍

ExpressiveDictionary<String, Any>

Optional<Bool>

Array<Int>

Bool?

[Int]

[String: Any]

zoo(closure: { (param: Int) in print(param) })

func foo() { }

func boo(closure: () -> Void) { }

func foo() -> Void { }

func boo(closure: (Void) -> Void) -> Void { }

zoo{ (param) in print(param) }zoo{ (param: Int) in print(param) }

zoo{ print($0) }zoo(closure: { print($0) })

zoo(closure: { (param) in print(param) })

Page 8: Swift 시작하기 - GitHub Pages · 2019-09-28 · iOS 개발 iOS 및 ... 관련 전공생䯽 •다른 언어를 사용해 본 프로그래머䯽 •(객체지향) 프로그래밍

참고

• Swift Programming Language Guide[Apple Developer / iBooks]

• Swift API Design Guidelines[swift.org]