Cocoa & CocoaTouch
Cocoa and Cocoa Touch are the application development environments for OS X and iOS, respectively. Both Cocoa and Cocoa Touch include the Objective-C runtime and two core frameworks:
- Cocoa, which includes the Foundation and AppKit frameworks, is used for developing applications that run on OS X.
- Cocoa Touch, which includes Foundation and UIKit frameworks, is used for developing applications that run on iOS.
์ฝ์ฝ์ ํฐ์น ๊ณ์ธต์ด๋?
- ์ฝ์ฝ์ ํฐ์น ๊ณ์ธต์ iOS ์ ํ๋ฆฌ์ผ์ด์ ๊ฐ๋ฐ์ ์ฃผ ์ถ์ ์ด๋ฃจ๋ ๊ฐ๋ฐํ๊ฒฝ์ผ๋ก, ์ ํ๋ฆฌ์ผ์ด์ ์ ๋ค์ํ ๊ธฐ๋ฅ ๊ตฌํ์ ํ์ํ ์ฌ๋ฌ ํ๋ ์์ํฌ๋ฅผ ํฌํจํ๋ ์ต์์ ํ๋ ์์ํฌ ๊ณ์ธต
- ์ฝ์ฝ์๋ macOS์ ์ ๋ฐ์ ์ธ ๊ธฐ๋ฅ์ ํ์ฉํด ์ ํ๋ฆฌ์ผ์ด์ ์ ์ ์ํ ๋ ์ฌ์ฉํ๋ ํ๋ ์์ํฌ ๊ณ์ธต
- ์ฝ์ฝ์ํฐ์น๋ iOS์ ์ ๋ฐ์ ์ธ ๊ธฐ๋ฅ์ ํ์ฉํด ์ ํ๋ฆฌ์ผ์ด์ ์ ์ ์ํ ๋ ์ฌ์ฉํ๋ ํ๋ ์์ํฌ ๊ณ์ธต
UIKit
- iOS ์ ํ๋ฆฌ์ผ์ด์ ์ ์ฌ์ฉ์ ์ธํฐํ์ด์ค๋ฅผ ๊ตฌํํ๊ณ ์ด๋ฒคํธ๋ฅผ ๊ด๋ฆฌํ๋ ํ๋ ์์ํฌ
- UIKit ํ๋ ์์ํฌ๋ ์ ์ค์ฒ ์ฒ๋ฆฌ, ์ ๋๋ฉ์ด์ , ๊ทธ๋ฆผ ๊ทธ๋ฆฌ๊ธฐ, ์ด๋ฏธ์ง ์ฒ๋ฆฌ, ํ ์คํธ ์ฒ๋ฆฌ ๋ฑ ์ฌ์ฉ์ ์ด๋ฒคํธ ์ฒ๋ฆฌ๋ฅผ ์ํ ํด๋์ค๋ฅผ ํฌํจ.
- ํ ์ด๋ธ๋ทฐ, ์ฌ๋ผ์ด๋, ๋ฒํผ, ํ ์คํธ ํ๋, ์ผ๋ฟ ์ฐฝ ๋ฑ ์ ํ๋ฆฌ์ผ์ด์ ์ ํ๋ฉด์ ๊ตฌ์ฑํ๋ ์์๋ฅผ ํฌํจ.
- UIKit์ iOS์ tvOS ํ๋ซํผ์์ ์ฌ์ฉ.
Foundation
- iOS ์ ํ๋ฆฌ์ผ์ด์ ์ ์ด์์ฒด์ ์๋น์ค์ ๊ธฐ๋ณธ ๊ธฐ๋ฅ์ ํฌํจํ๋ ํ๋ ์์ํฌ
- ์์ ๋ฐ์ดํฐ ํ์ (String, Int, Double), ์ปฌ๋ ์ ํ์ (Array, Dictionary, Set) ๋ฐ ์ด์์ฒด์ ์๋น์ค๋ฅผ ์ฌ์ฉํด ์ ํ๋ฆฌ์ผ์ด์ ์ ๊ธฐ๋ณธ์ ์ธ ๊ธฐ๋ฅ์ ๊ด๋ฆฌํ๋ ํ๋ ์์ํฌ
- Foundation ํ๋ ์์ํฌ๋ ๋ฐ์ดํฐ ํ์ , ๋ ์ง ๋ฐ ์๊ฐ ๊ณ์ฐ, ํํฐ ๋ฐ ์ ๋ ฌ, ๋คํธ์ํน ๋ฑ์ ๊ธฐ๋ณธ ๊ธฐ๋ฅ์ ์ ๊ณตํฉ๋๋ค.
- Foundation ํ๋ ์์ํฌ์์ ์ ์ํ ํด๋์ค, ํ๋กํ ์ฝ ๋ฐ ๋ฐ์ดํฐ ํ์ ์ iOS๋ฟ๋ง ์๋๋ผ macOS, watchOS, tvOS ๋ฑ ๋ชจ๋ ์ ํ SDK์์ ์ฌ์ฉ๋ฉ๋๋ค.
'iOS ๐ > iOS' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
Delegation Pattern (0) | 2021.02.17 |
---|---|
Design Pattern (0) | 2021.02.16 |
View hierarchy (0) | 2021.02.16 |
AutoLayout (0) | 2021.02.16 |
viewController life cycle (0) | 2021.01.27 |