๋ชฉ๋ก์ ์ฒด ๊ธ (454)
Bibi's DevLog ๐ค๐
Collection View(UICollectionView) ์ปฌ๋ ์ ๋ทฐ https://developer.apple.com/library/archive/documentation/WindowsViews/Conceptual/CollectionViewPGforIOS/Introduction/Introduction.html#//apple_ref/doc/uid/TP40012334-CH1-SW1 https://www.raywenderlich.com/18895088-uicollectionview-tutorial-getting-started ์ปฌ๋ ์ ๋ทฐ๋ ์์ดํฐ์ ์ฌ์ง ์ฑ์ฒ๋ผ, ์ฌ๋ฌ ํญ๋ชฉ์ ๋์ดํ๋ ๋ ์ด์์์ด๋ค. ์ปฌ๋ ์ ๋ทฐ์ ์ค์ํ ๊ฒ์ ๋ทฐ๋ค์ ๊ฐ์ ธ์์ ๋ฐฐ์นํ๋ ๊ฒ์ผ ๋ฟ, ๊ทธ ๋ด์ฉ์ ์ค์ํ์ง ์๋ค. Understanding th..
Ebony & Bibi
html ๋งํฌ๋ฅผ ํตํด Xcode ํ๋ก์ ํธ ์ฑ ๋ฐฐํฌํ๊ธฐ Xcode์์ ๋ฐฐํฌํ ํ๋ก์ ํธ Archiveํ๊ธฐ Distribute App ํด๋ฆญ development์ ํ ํ ๊ธฐ๋ณธ ์ต์ ์ผ๋ก ์งํํ๋ค๊ฐ, ๋ค์ด๋ก๋ ์ฃผ์๋ฅผ ์์๋ก ๋ฃ์ด์ ์์ ๋ฐฐํฌ ํ์ผ์ ๋ง๋ ๋ค. (์ฒซ ๋ฒ์งธ Archive) export๋ ํ์ผ 5๊ฐ ์ค .ipa๋ฅผ dropbox ๋ฑ์ ์ฌ๋ ค์ ๋ค์ด๋ก๋ ๋งํฌ๋ฅผ ๋ณต์ฌํ๋ค. .ipa = ์ฑ(ํ๋ก์ ํธ) ์คํ ํ์ผ dropbox ๋ค์ด๋ก๋ ๋งํฌ๋ฅผ ํด๋ฆญํ์ ๋ dropbox์นํ์ด์ง๊ฐ ์ด๋ฆฐ๋ค๋ฉด, ๋ค์ด๋ก๋ ๋งํฌ๋ฅผ ์กฐ์ํด ๋ฐ๋ก ํ์ผ์ด ๋ค์ด๋ก๋๋๋๋ก ํ ์ ์์ต๋๋ค. (Before) https://www.dropbox.com/s/6l6hvtqttscoe36/todolink.html?dl=0 ์ด๋ฌํ ํํ์ ๋งํฌ ๋์ , (After..
220410 NotificationCenter Notification https://developer.apple.com/documentation/foundation/notification : notification center๋ฅผ ํตํด ๋ฑ๋ก๋ ๋ชจ๋ ์ต์ ๋ฒ๋ค์๊ฒ ๋ฐ์ก๋๋ ์ ๋ณด๋ฅผ ๋ด๊ธฐ ์ํ ์ปจํ ์ด๋. init(name: Notification.Name, object: Any?, userInfo: [AnyHashable : Any]?)](https://developer.apple.com/documentation/foundation/notification/2451466-init)) name : notification์ ์๋ณํ๋ ํ๊ทธ. (Notification.Name) extension์ผ๋ก Notification..
[Swift] ์ฝ๋๋ก AutoLayout ์ค์ ํ๊ธฐ (Constraint) https://macgongmon.club/31 ์ฐธ๊ณ ํ๊ธฐ : Apple ๊ณต์ ๋ฌธ์: Understanding Auto Layout AutoLayout์ด๋ : ๋ทฐ ๊ณ์ธต ๋ด์์ ๋ทฐ๋ค์ ํฌ๊ธฐ์ ์์น๋ฅผ ๊ฐ ๋ทฐ๋ค์ ์ ์ฝ์ฌํญ(constraint)์ ๊ธฐ๋ฐ์ผ๋ก ๋์ ์ผ๋ก ๊ณ์ฐํ๋ ๊ฒ. ์ฌ๋ฌ ํด์๋๋ฅผ ์ ์ฐํ๊ฒ ์ง์ํ ์ ์๋ค๋ ์ฅ์ ์ด ์๋ค. AutoLayout vs Frame-Based Layout Frame-Based Layout ์ ์๋ ์ขํ(origin - X, Y)์ ์ฌ์ด์ฆ(size - width, height)์ ๋ฐ๋ผ ๋ทฐ๊ฐ ๊ทธ๋ ค์ง๋ค. AutoLayout ์ ์๋ ์ ์ฝ์ฌํญ(constraint)์ ๋ฐ๋ผ ๋ทฐ๊ฐ ๊ทธ๋ ค์ง๋ค. constraint = ์ง๊ธ ..
Container View Controller ์ปจํ ์ด๋ ๋ทฐ ์ปจํธ๋กค๋ฌ https://woozzang.tistory.com/145 ViewController์ ๋ ์ข ๋ฅ Content View Controller ์ปจํ ์ธ ๋ทฐ ์ปจํธ๋กค๋ฌ ์ผ๋ฐ์ ์ธ ๋ทฐ ์ปจํธ๋กค๋ฌ. ์ฑ ๋ด ๋ฐ์ดํฐ๋ฅผ ํ๋ฉด์ ๋ณด์ฌ์ฃผ๋ ๋ฑ์ ์ญํ UIViewController๋ฅผ ์ง์ ์๋ธํด๋์ฑํด ์ปค์คํ ํด ์ฌ์ฉ Container View Controller ์ปจํ ์ด๋ ๋ทฐ ์ปจํธ๋กค๋ฌ ์ฌ๋ฌ ์์๋ฅผ ์กฐํฉํ ์ธํฐํ์ด์ค๋ฅผ ๊ตฌ์ฑ ๋ณดํต ๋ฌด์ธ๊ฐ๋ฅผ ์ง์ ๋ณด์ฌ์ฃผ๋ ์ญํ ์ด ์๋๋ผ, ๋ทฐ ์ปจํธ๋กค๋ฌ ๊ฐ์ ๋ถ๋ชจ-์์ ๊ด๊ณ๋ฅผ ํ์ฑํ์ฌ ๊ณ ์ ์ ๋ฐฉ์์ผ๋ก ์์์ ๊ด๋ฆฌํ๋ ์ญํ ์ ๋ทฐ ์ปจํธ๋กค๋ฌ. ์์ ๋ทฐ ์ปจํธ๋กค๋ฌ๋ค์ ์ฐธ์กฐ๋ฅผ ๊ฐ์ง๊ณ ๊ด๋ฆฌํ๋ค. ์ฆ Container View Controller๊ฐ Cont..
Sync, Async / Serial, Concurrent https://babbab2.tistory.com/64?category=831129 https://cskime.tistory.com/18 Sync : synchronous (๋๊ธฐ) : ๋์ ๋ฐ์ํ๋. ์๋ฏธ : "์์ฒญ์ ๋ํ ์๋ต"์ด ๋์์ ๋ฐ์ํ๋. ์ฆ ๋ด ์์ ์ด ๋๋๊ธฐ ์ ๊น์ง ๋ค๋ฅธ ์์ ์ ์ํํ์ง ์๋๋ค๋ ์๋ฏธ = "์์ฐจ์ " ํ์์ ๋น๋๊ธฐ ์์ ์์ด ํ๋ ์ฝ๋ฉ์ด ๋๊ธฐ ๋ฐฉ์์ผ๋ก ์ด๋ฃจ์ด์ง. ๋๊ท๋ชจ์ ์์ ์ ๋๊ธฐ๋ก ์ฒ๋ฆฌํ๋ฉด ์์ ์๋ ์ ํ - ๋น๋๊ธฐ๋ก ์ฒ๋ฆฌํด์ผ ํจ Async : asynchronous (๋น๋๊ธฐ) : ๋์์ ๋ฐ์ํ์ง ์๋. ์๋ฏธ : "์์ฒญ์ ๋ํ ์๋ต"์ด ๋์์ ๋ฐ์ํ์ง ์๋๋ค. ์ฆ ๋ด ์์ ์ด ๋๋๊ธฐ ์ ์ ๋ค๋ฅธ ์์ ์ ์ํํ ์ ์๋ค๋ ..
[iOS] main thread, global thread ๋ฉ์ธ ์ค๋ ๋(์ธํฐํ์ด์ค ์ค๋ ๋), ๊ธ๋ก๋ฒ ์ค๋ ๋(๋ฐฑ๊ทธ๋ผ์ด๋ ์ค๋ ๋) https://babbab2.tistory.com/65?category=831129 Main Thread ๋ฉ์ธ ์ค๋ ๋ (Interface Thread ์ธํฐํ์ด์ค ์ค๋ ๋) iOS ์์ ๋ฉ์ธ ์ค๋ ๋๋ ์ค์ง ํ ๊ฐ๋ง ์กด์ฌํจ ๋ฉ์ธ ์ค๋ ๋๋ ์ธํฐํ์ด์ค ์ค๋ ๋๋ผ๊ณ ๋ ํจ : UI์ ๊ด๋ จ๋ ์์ ์ ๋ฐ๋์ ๋ฉ์ธ ์ค๋ ๋์์ ์์ฑํด์ผ ํ๊ธฐ ๋๋ฌธ. ๋ฉ์ธ ์ค๋ ๋๋ Main Queue ์์ ์คํ๋๋๋ฐ, Main Queue ๋ Serial Queue ์ด๊ธฐ ๋๋ฌธ์, ํ ๋ฒ์ ํ๋์ ์์ ๋ง ์คํํจ. ๋ฐ๋ผ์ UI์ ์ํฅ์ ์ค ๋งํ ์ฝ๋๋ค์ ๋ฉ์ธ ์ค๋ ๋๊ฐ ์๋ ์๋์ Global Thread ๋ก ์คํํด์ผ ํจ. G..