Download free for 30 days
Sign in
Upload
Language (EN)
Support
Business
Mobile
Social Media
Marketing
Technology
Art & Photos
Career
Design
Education
Presentations & Public Speaking
Government & Nonprofit
Healthcare
Internet
Law
Leadership & Management
Automotive
Engineering
Software
Recruiting & HR
Retail
Sales
Services
Science
Small Business & Entrepreneurship
Food
Environment
Economy & Finance
Data & Analytics
Investor Relations
Sports
Spiritual
News & Politics
Travel
Self Improvement
Real Estate
Entertainment & Humor
Health & Medicine
Devices & Hardware
Lifestyle
Change Language
Language
English
Español
Português
Français
Deutsche
Cancel
Save
EN
Uploaded by
SeongGyu Jo
PDF, PPTX
1,080 views
Objective-C에서 Swift로 전향할 때 생각해 볼 거리들
Objective-C를 사용하다가 Swift로 전향할 때 최소한으로 생각해 보아야 할 것들에 대한 발표입니다. 2017. 2. 16. 목 - Tech Talk 행사에서 발표했습니다
Software
◦
Read more
1
Save
Share
Embed
Embed presentation
Download
Download as PDF, PPTX
1
/ 23
2
/ 23
3
/ 23
4
/ 23
5
/ 23
6
/ 23
7
/ 23
8
/ 23
9
/ 23
10
/ 23
11
/ 23
12
/ 23
13
/ 23
14
/ 23
15
/ 23
16
/ 23
17
/ 23
18
/ 23
19
/ 23
20
/ 23
21
/ 23
22
/ 23
23
/ 23
More Related Content
PDF
Objective-C에서 멀티스레드 사용하기
by
Jaeeun Lee
PPTX
Visual studio 2010
by
MinGeun Park
PDF
IndirectDraw with unity
by
Jung Suk Ko
PDF
10th
by
웅식 전
PPTX
Hacosa js study 2주차
by
Seong Bong Ji
PPTX
Refelction의 개념과 RTTR 라이브러리
by
ssuser7c5a40
PPTX
Effective c++ Chapter6
by
세빈 정
PPTX
100511 boost&tips 최성기
by
sung ki choi
Objective-C에서 멀티스레드 사용하기
by
Jaeeun Lee
Visual studio 2010
by
MinGeun Park
IndirectDraw with unity
by
Jung Suk Ko
10th
by
웅식 전
Hacosa js study 2주차
by
Seong Bong Ji
Refelction의 개념과 RTTR 라이브러리
by
ssuser7c5a40
Effective c++ Chapter6
by
세빈 정
100511 boost&tips 최성기
by
sung ki choi
Viewers also liked
PDF
Conociendo a John Smyth
by
RONALD RAMIREZ OLANO
PDF
왜 Swift를 해야할까요?
by
선협 이
PDF
스위프트 성능 이해하기
by
Yongha Yoo
PDF
Realm world tour Seoul 2017 발표자료
by
SeongGyu Jo
PDF
RxSwift 예제로 감잡기
by
Yongha Yoo
PPTX
SLiPP 서비스를 Java에서 Scala로 전환하면서 경험담
by
Javajigi Jaesung
PDF
모바일 앱(App) 개발 테스트 솔루션 v20160415
by
SeungBeom Ha
PDF
트위터 봇 개발 후기
by
종빈 오
PDF
폰노이만 머신 이해
by
중선 곽
PDF
격변하는 프로그래밍 언어, 이제는 Let it go
by
Chris Ohk
PDF
모바일 게임 테스트 자동화 (Appium 확장)
by
Jongwon Kim
PDF
Java 개발자가 하드웨어를 만나게 된다면??
by
유명환 FunFun Yoo
PDF
Protocol Oriented Programming in Swift
by
SeongGyu Jo
PPTX
C++과 Lua script연동
by
선협 이
PDF
자바, 미안하다! 파이썬 한국어 NLP
by
Eunjeong (Lucy) Park
PDF
소프트웨어 개발자를 위한 하드웨어 상식
by
중선 곽
PDF
개발자라면, 블로그
by
HyunSeob Lee
PPTX
The beginner’s guide to 웹 크롤링 (스크래핑)
by
Eunjeong (Lucy) Park
PPTX
RxJS and Reactive Programming - Modern Web UI - May 2015
by
Ben Lesh
PDF
Ui test 자동화하기 - Selenium + Jenkins
by
Chang Hak Yeon
Conociendo a John Smyth
by
RONALD RAMIREZ OLANO
왜 Swift를 해야할까요?
by
선협 이
스위프트 성능 이해하기
by
Yongha Yoo
Realm world tour Seoul 2017 발표자료
by
SeongGyu Jo
RxSwift 예제로 감잡기
by
Yongha Yoo
SLiPP 서비스를 Java에서 Scala로 전환하면서 경험담
by
Javajigi Jaesung
모바일 앱(App) 개발 테스트 솔루션 v20160415
by
SeungBeom Ha
트위터 봇 개발 후기
by
종빈 오
폰노이만 머신 이해
by
중선 곽
격변하는 프로그래밍 언어, 이제는 Let it go
by
Chris Ohk
모바일 게임 테스트 자동화 (Appium 확장)
by
Jongwon Kim
Java 개발자가 하드웨어를 만나게 된다면??
by
유명환 FunFun Yoo
Protocol Oriented Programming in Swift
by
SeongGyu Jo
C++과 Lua script연동
by
선협 이
자바, 미안하다! 파이썬 한국어 NLP
by
Eunjeong (Lucy) Park
소프트웨어 개발자를 위한 하드웨어 상식
by
중선 곽
개발자라면, 블로그
by
HyunSeob Lee
The beginner’s guide to 웹 크롤링 (스크래핑)
by
Eunjeong (Lucy) Park
RxJS and Reactive Programming - Modern Web UI - May 2015
by
Ben Lesh
Ui test 자동화하기 - Selenium + Jenkins
by
Chang Hak Yeon
Similar to Objective-C에서 Swift로 전향할 때 생각해 볼 거리들
PDF
[1B1]스위프트프로그래밍언어
by
NAVER D2
PPT
iOS 앱 개발 강의 자료 #1
by
Jeong-Hoon Mo
PDF
[Osxdev]4.swift
by
NAVER D2
PDF
Swift5 vs objective c
by
Bill Kim
PDF
Hello Swift 2/5 - Basic2
by
Cody Yun
PDF
[SwiftStudy 2016] 2장. Swift 타입 파트 1
by
Keunhyun Oh
PDF
Object C - RIP
by
Dong Heon Cho
PDF
[Swift] Optional
by
Bill Kim
PDF
10 swift 열거형구조체클래스
by
Changwon National University
PDF
[Swift] Methods
by
Bill Kim
PDF
Do swift: Swift 무작정 해보기
by
YoonBong Steve Kim
PDF
iOS-3
by
Sanghoon Han
PDF
Swift 세미나
by
용재 김
PPTX
Swift2
by
HyungKuIm
PDF
Swift 3 Programming for iOS : Enumeration
by
Kwang Woo NAM
PDF
I os 2
by
Sanghoon Han
PDF
프로그래밍 오브젝티브 C 2.0 (5/E) - 8장 상속
by
Keunhyun Oh
PDF
[112] 실전 스위프트 프로그래밍
by
NAVER D2
PDF
Swift3 subscript inheritance initialization
by
Eunjoo Im
PDF
2 swift 상수,변수,튜풀 옵셔널
by
Changwon National University
[1B1]스위프트프로그래밍언어
by
NAVER D2
iOS 앱 개발 강의 자료 #1
by
Jeong-Hoon Mo
[Osxdev]4.swift
by
NAVER D2
Swift5 vs objective c
by
Bill Kim
Hello Swift 2/5 - Basic2
by
Cody Yun
[SwiftStudy 2016] 2장. Swift 타입 파트 1
by
Keunhyun Oh
Object C - RIP
by
Dong Heon Cho
[Swift] Optional
by
Bill Kim
10 swift 열거형구조체클래스
by
Changwon National University
[Swift] Methods
by
Bill Kim
Do swift: Swift 무작정 해보기
by
YoonBong Steve Kim
iOS-3
by
Sanghoon Han
Swift 세미나
by
용재 김
Swift2
by
HyungKuIm
Swift 3 Programming for iOS : Enumeration
by
Kwang Woo NAM
I os 2
by
Sanghoon Han
프로그래밍 오브젝티브 C 2.0 (5/E) - 8장 상속
by
Keunhyun Oh
[112] 실전 스위프트 프로그래밍
by
NAVER D2
Swift3 subscript inheritance initialization
by
Eunjoo Im
2 swift 상수,변수,튜풀 옵셔널
by
Changwon National University
Objective-C에서 Swift로 전향할 때 생각해 볼 거리들
1.
Objective-C에서 Swift로 조성규 - iOS
Tech Talk
2.
Contents • Naming Style •
Data Types - Struct, Enum, Optional… • Constants • Properties • Closure
3.
Naming Style • Objective-C와
Swift는 이름짓는 방법이 다릅니다 • 타입이름 • 클래스 접두어는 이제 그만~ • 메서드, 열거형 등등
4.
타입 이름 Objective-C Swift CG.Point() CG.Size() CGRect CGPoint CGSize … … struct
CG { struct Point { } struct Size { } } struct CL { struct Point { } struct Size { } } struct Point { } CL.Point() CL.Size()
5.
초기화 메서드 Objective-C Swift [[UIView
alloc] initWithFrame:CGRectZero]; UIView(frame: CGRect.zero) - (instancetype)initWithFrame:(CGRect)frame; init(frame: CGRect)
6.
메서드 Objective-C Swift [self presentViewController:vc animated:YES completion:nil]; [self
dismissViewControllerAnimated:YES completion:nil]; self.present(vc, animated: true, completion: nil) dismiss(animated: true, completion: nil)
7.
열거형 케이스 Objective-C Swift 대문자
시작 소문자 시작 typedef NS_ENUM(NSInteger, WeekDays) { WeekDaysMon = 0, WeekDaysTue, WeekDaysWed, WeekDaysThu, WeekDaysFri }; WeekDaysMon; enum WeekDays { case mon, tue, wed, thu, fri } WeekDays.mon
8.
주의! • Swift와 Objective-C를
혼용하여 사용할 경우 네이밍 규칙에 따라 코딩하지 않으면 서로 번역이 잘못될 수 있습니다
9.
좋은 혼합의 예 Objective-C
Swift [vc viewWithSomething:nil]; func view(withSomething sth: Any?) -> UIView? - (UIView *)viewWithSomething:(id)sth; vc.view(withSomething: nil)
10.
잘못된 혼합의 예 Objective-C
Swift ??? func view(_ sth: Any?) -> UIView? - (UIView *)view_with_sth:(id)sth; vc.view_(with_sth: nil)
11.
Data Types • 서로
다른 자료형 체계 • 구조체, 열거형이 그 근간 • Optional
12.
구조체 Objective-C Swift struct CGSize
{ CGFloat width; CGFloat height; }; typedef struct CGSize CGSize; struct CGSize { var width: CGFloat var height: CGFloat func equalTo(_ size2: CGSize) -> Bool init() init(width: CGFloat, height: CGFloat) }
13.
구조체 Swift Swift의 기본 데이터
타입은 모두 구조체! struct Int : SignedInteger, Comparable, Equatable { } struct Double { } struct String { } ……
14.
열거형 Objective-C Swift 이름으로 묶은
상수 고유의 값 typedef NS_ENUM(NSInteger, WeekDays) { WeekDaysMon = 0, WeekDaysTue, WeekDaysWed, WeekDaysThu, WeekDaysFri }; enum WeekDays { case mon, tue, wed, thu, fri }
15.
옵셔널 Objective-C Swift UIView *some
= nil; let some: UIView = nil let some: UIView? = nil
16.
옵셔널 / 열거형 Swift 옵셔널
기능은 열거형으로 구현되어 있다! enum Optional<Wrapped> : ExpressibleByNilLiteral { case none case some(Wrapped) public init(_ some: Wrapped) }
17.
Constants • 달라진 상수의
정의와 사용
18.
타입 in 타입 Objective-C
Swift static NSInteger const MaxInputValue = 100; static NSInteger const MinInputValue = 0; static NSString *const InputMethodKeyboard = @“keyboard"; static NSString *const InputMethodMouse = @"mouse"; struct Input { struct Value { static let max = 100 static let min = 0 } enum Method { case keyboard case mouse } }
19.
지역 상수의 생활화 Objective-C
Swift const를 매번 붙이기 불편 var와 let 중에 선택 const CGSize size = CGSizeZero; let size: CGSize = CGSize.zero
20.
Properties • 다양해진 프로퍼티의
형태 • 이제 프로퍼티 메서드 오버라이드는 그만!
21.
Property Observer Objective-C Swift 분산된
코드 한 눈에 파악 가능 @interface SomeViewController () @property (nonatomic) NSInteger count; @end @implementation SomeViewController - (void)setCount:(NSInteger)count { _count = count; NSLog(@"count %ld", count); } @end class ViewController: UIViewController { var count: Int { didSet { print("count (count)") } } }
22.
Computed Property Objective-C Swift 분산된
코드 한 눈에 파악 가능 @interface SomeViewController () @property (nonatomic) NSInteger dollar; @property (nonatomic) NSInteger won; @end @implementation SomeViewController - (NSInteger)won { return _dollar * 1000; } @end class ViewController: UIViewController { var dollar: Int = 10 var won: Int { return dollar * 1000 } }
23.
Closure • Swift의 클로저는
일급객체 • 변수, 상수, 매개변수 등으로 전달할 수 있음 • 함수는 클로저의 일종 • map, filter, reduce 등의 고차함수
Download