profile
iOS Developer ๐Ÿ’ป
post-thumbnail

[Swift] File, Image ๊ณต์œ ํ•˜๊ธฐ

์•ฑ์„ ์ œ์ž‘ ํ•˜๋‹ค๋ณด๋ฉด ํŠน์ • ์•„์ดํ…œ์„ ์™ธ๋ถ€๋กœ ๊ณต์œ ํ•˜๊ฑฐ๋‚˜ ์™ธ๋ถ€ ์–ดํ”Œ์— Export ํ•˜๊ณ  ์‹ถ์„ ๋•Œ๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค.๊ทธ๋Ÿฐ ๊ฒฝ์šฐ์—๋Š” ActivityViewController๋ฅผ ํ†ตํ•ด ํ™œ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.ํ•ด๋‹น ํด๋ž˜์Šค๋Š” iOS 6.0 ์ด์ƒ ๋ถ€ํ„ฐ ์‚ฌ์šฉ์ด ๊ฐ€๋Šฅํ•ฉ๋‹ˆ๋‹ค.iPod Touch ํ˜น์€ i

2022๋…„ 6์›” 17์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€

[Swift] Network ์ƒํƒœ ์ฒดํฌํ•˜๊ธฐ

swift์—์„œ ๋„คํŠธ์›Œํฌ ์ƒํƒœ๋ฅผ ์ฒดํฌํ•˜๋Š” ๋ฐฉ๋ฒ•์— ๋Œ€ํ•ด์„œ ์•Œ์•„๋ณด๋„๋ก ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค.์šฐ์„  swift์—๋Š” Network๋ผ๋Š” ๊ธฐ๋ณธ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๊ฐ€ ์žˆ๋Š”๋ฐ ์ด๊ฒƒ์„ ์ด์šฉํ•ด์ฃผ๋ฉด ๋ฉ๋‹ˆ๋‹ค.์ด๊ฒƒ์„ ์ด์šฉํ•˜๋ฉด ํ˜„์žฌ ๋„คํŠธ์›Œํฌ์˜ ์ƒํƒœ, ์ข…๋ฅ˜ ๋“ฑ.. ๋‹ค์–‘ํ•œ ์ •๋ณด๋“ค์„ ์•Œ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.๊ธฐ๋ณธ์ ์œผ๋กœ ์–ด๋–ป๊ฒŒ ์‚ฌ์šฉ

2022๋…„ 6์›” 13์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€

Atomic ๋ณ€์ˆ˜

ํ˜„์žฌ ๊ฐœ๋ฐœ์ค‘์ธ ํ”„๋กœ์ ํŠธ์—์„œ ์‚ฌ์šฉํ•˜๊ณ  ์žˆ๋Š” ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ์˜ ์ฝ”๋“œ๋ฅผ ๋ณด๋‹ค๋ณด๋‹ˆ Atomic<A>๋ผ๋Š” ๊ตฌ์กฐ์ฒด๊ฐ€ ์žˆ์—‡๊ณ ์ฐธ๊ณ ํ•  ์ˆ˜ ์žˆ๋Š” ๋งํฌ๊ฐ€ ์žˆ๊ธฐ์— ํ˜ธ๊ธฐ์‹ฌ์— ๋“ค์–ด๊ฐ€ ๋ดค๋‹ค๊ฐ€ ํฅ๋ฏธ๋กœ์šด ๋‚ด์šฉ์ธ๊ฑฐ ๊ฐ™์•„ ๋ฒˆ์—ญ์„ ํ•ด๋ด…๋‹ˆ๋‹ค.Atomic Variables๋ž€ ๋ฌด์—‡์ผ๊นŒ? ๋ฐ”๋กœ ์›์ž์„ฑ์„ ๋ณด์žฅํ•˜๋Š”

2022๋…„ 5์›” 30์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€

[Swift] Bottom Alert View ์ œ์ž‘ํ•˜๊ธฐ - 2

Xcode 13.3Swift 5.6SnapKit 5.0.1RxSwift 6.0.0RxCocoa 6.0.0์ง€๋‚œ๋ฒˆ Bottom Alert View ์ œ์ž‘ํ•˜๊ธฐ ์— ์ด์–ด์„œ ์•ฑ์—์„œ ์ปค์Šคํ…€ํ•œ BottomAlertView๋ฅผ ํ•ด์ œํ•˜๋Š” ๊ณผ์ •๊ณผ ํ‚ค๋ณด๋“œ๊ฐ€ ์˜ฌ๋ผ์™”์„๋•Œ ๋Œ€์ฒ˜ ๋ฐฉ๋ฒ•์— ๋Œ€ํ•ด์„œ ์ ์–ด

2022๋…„ 5์›” 23์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
post-thumbnail

WWDC 21 - Meet the UIKit button system

์ตœ๊ทผ UIButton์˜ contentEdgeInsets ํ”„๋กœํผํ‹ฐ๋ฅผ ์‚ฌ์šฉํ•˜๋˜์ค‘ ๊ฒฝ๊ณ ์ฐฝ์ด ํ•˜๋‚˜ ๋–ด์Šต๋‹ˆ๋‹ค. 'contentEdgeInsets' was deprecated in iOS 15.0 iOS15 ์ดํ›„ ๋ฒ„์ „์—์„œ๋Š” ํ•ด๋‹น ํ”„๋กœํผํ‹ฐ๊ฐ€ deprecated ๋˜์—ˆ๋‹ค๋Š” ๊ฒฝ๊ณ ๋ฌธ๊ตฌ

2022๋…„ 5์›” 9์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€

[Swift] Bottom Alert View ์ œ์ž‘ํ•˜๊ธฐ - 1

Tool Info Xcode 13.3 Swift 5.6 SnapKit 5.0.1 RxSwift 6.0.0 RxCocoa 6.0.0 Declaration ์•ฑ์—์„œ ์ปค์Šคํ…€ํ•œ BottomAlertView๋ฅผ ์ œ์ž‘ํ•œ ๊ณผ์ •์„ ์ ์–ด ๋ดค์Šต๋‹ˆ๋‹ค. ํ•ด๋‹น View๋ฅผ ํ†ตํ•ด ์—ฌ๋Ÿฌ๊ฐ€์ง€์˜ Al

2022๋…„ 4์›” 25์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
post-thumbnail

[Swift] ํŠน์ • ViewController์—์„œ ํ™”๋ฉด ํšŒ์ „ํ•˜๊ธฐ

์•ฑ์€ ์ด๋ ‡๊ฒŒ orientation์ด portraint๋กœ ์„ค์ •์ด ๋˜์–ด์žˆ์ง€๋งŒ, ํŠน์ • viewController์—์„œ๋Š” ํ™”๋ฉด์„ ํšŒ์ „ํ•˜๊ณ  ์‹ถ์„ ๋•Œ ํšŒ์ „ํ•˜๋Š” ๋ฐฉ๋ฒ•์— ๋Œ€ํ•ด์„œ ์ •๋ฆฌํ•ด๋ดค์Šต๋‹ˆ๋‹ค. ์šฐ์„  AppDelegate์˜ func application(_:, supportedIn

2022๋…„ 4์›” 8์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€

[Swift] AssociatedObject

AssociatedObject ์— ๋Œ€ํ•ด์„œ ๊ฐ„๋‹จํžˆ ์ •๋ฆฌํ•ด๋ดค์Šต๋‹ˆ๋‹ค.AssociatedObject๋Š” SubClassing ์—†์ด Extension์—์„œ ์†์„ฑ์ด๋‚˜ ๋ฉ”์†Œ๋“œ๋ฅผ ์ถ”๊ฐ€ํ•˜๊ฑฐ๋‚˜ ์ œ๊ฑฐํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ๊ฐ์ฒด์— ๊ฐ์ฒด๋ฅผ ์ €์žฅํ•˜๋Š” ๋Ÿฐํƒ€์ž„์‹œ ๊ฒฐ์ •๋˜๋Š” ๊ฐ•๋ ฅํ•œ Objective-C ํ•จ์ˆ˜

2022๋…„ 4์›” 8์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€

[Swift] WKWebView๋ฅผ ํ†ตํ•ด ๋กœ์ปฌ์˜ image๋ฅผ loadํ•  ๋•Œ ์ฃผ์˜ ์‚ฌํ•ญ

๊ธฐ๋ณธ์ ์œผ๋กœ ๋กœ์ปฌ์˜ image๋ฅผ ๋กœ๋“œํ•  ๋•Œ ์•„๋ž˜์™€ ๊ฐ™์ด ํ•˜๋ฉด ์† ์‰ฝ๊ฒŒ ๊ฐ€๋Šฅํ•˜๋‹ค.๊ทธ๋ž˜์„œ ํ•ด๋‹น padding ๊ฐ’์„ ๊ณ ์ณ์„œ ์ค‘์•™์— ๋ฐฐ์น˜ํ•˜๊ธฐ ์œ„ํ•ด evaluateJavaScript(\_:completionHandler:) ํ•จ์ˆ˜๋ฅผ ์‚ฌ์šฉํ•˜๊ธฐ๋กœ ํ–ˆ๋‹ค.์šฐ์„  load๊ฐ€ ์™„๋ฃŒ๋˜๊ณ  ๋‚œ ์ด

2022๋…„ 4์›” 7์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€

[Swift] Access Security Scoped File URL

ํŒŒ์ผ ์—…๋กœ๋“œ๋ฅผ ํ•˜๊ธฐ ์œ„ํ•ด UIDocumentPickerViewController๋ฅผ ์‚ฌ์šฉํ•˜์—ฌํŒŒ์ผ์„ ์„ ํƒํ•˜๊ณ  ์—…๋กœ๋“œ api ํ…Œ์ŠคํŠธ๋ฅผ ์ง„ํ–‰ํ•˜๋Š” ๋„์ค‘ ์—๋Ÿฌ๊ฐ€ ๋ฐœ๊ฒฌ๋˜์—ˆ๋‹ค.The URL provided is a directory ์ฆ‰, ํ•ด๋‹น url์€ file์ด ์•„๋‹ˆ๋ผ folder

2022๋…„ 3์›” 16์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€

[Swift] CollectionView๋กœ ImagePager๋งŒ๋“ค๊ธฐ (2)

์ €๋ฒˆ์— imagePager์˜ ๊ธฐ์ดˆ๋‹จ๊ณ„๋ฅผ ๋งŒ๋“ค์–ด๋ณด๋Š” ์‹œ๊ฐ„์„ ๊ฐ€์กŒ์—ˆ๋Š”๋ฐ์š”์ด๋ฒˆ์—๋Š” image๋ฅผ ํ™•๋Œ€ํ•˜๋Š” ๋ฐฉ๋ฒ•์— ๋Œ€ํ•ด์„œ ์•Œ์•„๋ณด๋„๋ก ํ•ฉ์‹œ๋‹ค.์ž, ๊ทธ๋Ÿผ ์šฐ๋ฆฌ๋Š” ์Šคํฌ๋กค๋ทฐ๋ฅผ ํ™•๋Œ€/์ถ•์†Œ ํ–ˆ์„ ๋•Œ ์–ด๋–ค๊ฑธ ์กฐ์ ˆํ•ด์•ผ ํ• ๊นŒ์š”?imagePager๋ฅผ ๋งŒ๋“ค๊ณ  ์žˆ์œผ๋‹ˆ ๋‹น์—ฐํžˆ ์ด๋ฏธ์ง€๋ทฐ๋ฅผ ํ™•๋Œ€/์ถ•์†Œ ํ•˜

2021๋…„ 11์›” 9์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
post-thumbnail

[Swift] statusBarStyle ์ œ์–ด๊ถŒ ๊ด€๋ฆฌํ•˜๊ธฐ

๊ทธ๋™์•ˆ ์ž˜ ์ž‘๋™ํ–ˆ๋‹ค๊ณ  ๋ฏฟ๊ณ ์žˆ์—‡๋˜ ์ฝ”๋“œ์— ์˜ค๋ฅ˜๊ฐ€ ์žˆ์—ˆ๋‹ค.์ƒˆ๋กœ์šด ViewController๋ฅผ Present ํ•  ๋•Œ ํ•ด๋‹น ViewController์—์„œ statusBar Style์„ ์˜ค๋ฒ„๋ผ์ด๋“œ์‹œ์ผœ์•„๋ž˜์ฒ˜๋Ÿผ ๋ณ€๊ฒฝ์„ ํ•ด์ฃผ๊ณ  ์žˆ์—‡๋Š”๋ฐ ์˜ค๋Š˜ ํ™•์ธํ•ด ๋ณด๋‹ˆ ๋ณ€๊ฒฝ์ด ์•ˆ๋˜๊ณ  ์žˆ์—‡๋‹ค.์ฒ˜์Œ์—๋Š”

2021๋…„ 11์›” 8์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€

[Swift] CollectionVeiw๋กœ ImagePager ๋งŒ๋“ค๊ธฐ (1)

์‚ฌ์šฉ ๋œ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ snapKit UIKit Foundation 1. ๊ธฐ์ดˆ๋‹จ๊ณ„ 1-1. ViewController ์„ค์ •ํ•˜๊ธฐ 1-2. Cell ์„ค์ •ํ•˜๊ธฐ. 1-3. Delegate ์„ค์ •ํ•˜๊ธฐ

2021๋…„ 11์›” 8์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€