gunw (25)in #swift4 • 6 years ago[Grammer] 26 - Custom OperatorsCustom Operators : prefix, postfix, infix 중 하나를 커스텀 infix operator *+* : MultiplicationPrecedence // 우선순위 그룹 설정gunw (25)in #swift4 • 6 years ago[Grammer] 25 - Operator MethodsOperator Methods static func operator(parameters) -> ReturnType {gunw (25)in #swift4 • 6 years ago[Grammer] 23 - Bitwise Operators, 24 - Identity OperatorBitwise Operators 메모리에 저장된 실제 비트를 다룸. 연산 속도가 빠르고 코드가 짧음. 비트 연산은 정수만 가능함.(실수 x, 문자열x) &, |, ^, ~, <> a : 0 0…gunw (25)in #swift4 • 6 years ago[Grammer]21 - Ternary Coditional Operator, 22 - Range OperatorsTernary Coditional Operator : //condition ? expr1 : expr2gunw (25)in #swift4 • 6 years ago[Grammer] 19 - Short-circuit Evaluation, Side Effect, 20 - Assignment OperatorsShort-circuit Evaluation(단락 평가) var a = 1gunw (25)in #swift4 • 6 years ago[Grammer] 16 - Overflow Operators, 17 - Comparison Operators, 18 - Logical OperatorsOverflow Operatiors &+ : Overflow Addition Operator &- : Overflow Subtraction Operator &*: Overflow Multiplication…gunw (25)in #swift4 • 6 years ago[Grammer] 13 - Data Types with Memory, 14 - Operator Basics, 15 - Arithmetic OperatorsData Types(자료형) : 메모리에 저장되는 데이터의 크기를 결정. Primitive Data Types : [Interger, Floating-point, Boolean, Character…gunw (25)in #swift4 • 6 years ago[Grammer] 11 - Type Inference, Type Safety, 12 - Type Conversion, Type AliasesType Inference: 타입을 값을 보고 추론함. let num = 123 gunw (25)in #swift4 • 6 years ago[Grammer] 09 - Boolean, 10 - Strings and CharactersBoolean: 참/거짓을 구분. Swift에서는 true, false 2가지만 소문자로 존재. if 조건문이나 while 반복문에 자주 사용 import UIKitgunw (25)in #swift4 • 6 years ago[Grammer] 07 - Naming Convention, 08 - NumbersNaming Conventions(이름 정의 규칙) Camel Case : UpperCamelCase와 lowerCamelCase로 구분. UpperCamelCase : Class…gunw (25)in #swift4 • 6 years ago[Grammer] 06 - ScopeScope (범위) : (전역 범위 / 지역 범위) 로 구분. 전역 범위 동일한 범위에 있는 변수와 상수에 접근할 수 있다. 동일한 범위 안에서는 이전에 선언되어있는 변수와 상수에만 접근할 수…gunw (25)in #swift4 • 6 years ago[Grammer] 05 - Variables and ConstantsVariables(변수) : Keyword, Identifier, Type, Initial Value 등을 이용함. var variableName = initialValuegunw (25)in #swift4 • 6 years ago[Grammer] 04 - First-class Citizen, Special CharactersFirst-class Citizen 상수와 변수에 저장할 수 있다. 파라미터로 전달할 수 있다. 함수에서 리턴할 수 있다. Special Characters : 프로그래밍에…gunw (25)in #swift4 • 6 years ago[Grammer] 03 - Compile, Link, RunCompiler : Source Code 를 분석해 Binary Code 로 변환. 그 동작을 Compile이라 함 Link : Framwork 와 Libarary 를 연결하는 과정. Build…gunw (25)in #swift4 • 6 years ago[Grammer] 02 - Literal, Identifier, KeywordLiterals: 의미가 변하지 않고 있는 그대로 사용하는 값. (ex. 숫자(1,2,3...)) integer, Floating-point, String, Boolean, nil Literals 등 다양한…gunw (25)in #swift4 • 6 years ago[Grammer] 01. Token, Expression, StatementToken : Identifier, Kewords, Punctuations, Operators, Literals 연산자 등이 있음. 간단히 더 이상 쪼갤 수 없는 원자 라고 할 수 있음.…gunw (25)in #ios • 6 years ago04.Todo (date / navi)기본 스토리보드 구성 모델파일 작성 dateFormatter를 이용한 날짜 계산 segue를 이용한 화면 전환 셀 재사용 메소드gunw (25)in #ios • 6 years ago03.facebook view페이스북처럼 테이블뷰를 스토리보드없이 생성하는 프로젝트 특이점은 각 값을 모두 Key.swift와 같이 파일을 생성하여 다 따로 만들어주는점. AppDelegate.swift에서 루트뷰컨트롤러를…gunw (25)in #ios • 6 years ago02. StopWatch특이점은 뷰컨트롤러안에, 뷰안에 레이블을 두었고, 아래쪽에 테이블뷰를 넣었다. StopWatch.swift 를 생성하여 NSObject를 받는 클래스를 생성 버튼 모양을 동그라미로…gunw (25)in #swift4 • 6 years agoProject.01 TabBar / TableView / ScrollView탭바 컨트롤을 위해 간단하게 뷰컨트롤러 2개에 임베딩을 시킨다. 이후 Product.swift 파일을 생성하여 아래와 같이 작성한다. ProductsTableViewController…