Swift Apprentice
-
Chapter 3: Basic Control FlowRaywenderlich/Swift Apprentice 2021. 6. 16. 15:01
Version Swift 5.5, iOS 15, Xcode 13 컴퓨터 프로그램(computer program)을 작성(writing)할 때, 다른 시나리오(scenarios)에서 수행할 작업을 컴퓨터에 알려야 할 필요가 있다. 예를 들어(for example), 계산기 앱(calculator app)에서 사용자(user)가 더하기(addition) 버튼(button)과 빼기(subtraction) 버튼(button)을 탭(taps)할 때 다른 작업을 수행해야 한다. 컴퓨터 프로그래밍(computer-programming) 용어(terms)에서 이 개념(concept)은 제어 흐름(control flow)으로 알려져 있는데, 프로그램(program)의 흐름(flow)이 다양한(various) 방법(met..
-
Chapter 2: Types & OperationsRaywenderlich/Swift Apprentice 2021. 3. 16. 17:42
Version Swift 5.5, iOS 15, Xcode 13 기본 연산(basic operations)을 수행(perform)하고 이러한 연산(operations)을 사용하여 데이터를 조작(manipulate)하는 방법을 알았으므로, 이제 유형(types)에 대해 자세히 알아볼 차례이다. 형식적으로(formally), 유형(type)은 일련의 값(set of values)과 이에 대해 수행(performed)할 수있는 연산(operations)을 설명(describes)한다. 이 장(chapter)에서는 텍스트(text)를 표현(represent)할 수 있는 문자열(strings)을 포함(including)하여 다양한 유형(types)을 처리(handling)하는 방법에 대해 알아본다. 유형(type..
-
Chapter 1: Expressions, Variables & ConstantsRaywenderlich/Swift Apprentice 2021. 1. 19. 20:04
Version Swift 5.5, iOS 15, Xcode 13 이 첫 번째 장(chapter)에서는 몇 가지 기본 사항(basics)을 살펴본다. 먼저 코드 작동 방식(how code works)을 배운다. 그런 다음 Swift 코드를 작성하는 데 사용할 도구(tools)에 대해 배운다. 그런 다음 코드 주석(code comments), 산술 연산(arithmetic operations), 상수 및 변수(constants and variables)와 같은 몇 가지 기본 사항(basics)을 학습하여 Swift 로의 모험(adventure)을 시작한다. 이는 모든 언어의 기본(fundamental) 구성 요소들(building blocks) 중 일부이며, Swift도 다르지 않다. 우선(first of ..