728x90

๐Ÿ“ฑ App Development Study/iOS๐ŸŽ 57

[Udemy iOS & Swift Bootcamp] Todo App(Local Data Persistance)

Local ์— ๋ฐ์ดํ„ฐ๊ฐ€ ์ €์žฅ๋˜๋Š” ToDo List ์•ฑ์„ ๋งŒ๋“ค์–ด๋ณด์ž. 1. Project Clone GitHub - appbrewery/Todoey-iOS13: Learn to Code While Building Apps - The Complete iOS Development Bootcamp Learn to Code While Building Apps - The Complete iOS Development Bootcamp - GitHub - appbrewery/Todoey-iOS13: Learn to Code While Building Apps - The Complete iOS Development Bootcamp github.com 2. Table View Controller ๋งŒ๋“ค๊ธฐ Table View ..

[Udemy iOS & Swift Bootcamp] Project Catalyst

macOS app ์€ AppKit ๋ฅผ ์‚ฌ์šฉํ•˜๊ณ  iOS app ์€ UIKit ๋ฅผ ์‚ฌ์šฉํ•œ๋‹ค. ๊ทผ๋ฐ apple์ด 2019๋…„ MacOS 10.15 ์นดํƒˆ๋ฆฌ๋‚˜(Catalina) ๋ฅผ ๋ฐœํ‘œํ•˜๋ฉด์„œ macOS ์—๋„ UIKit ๋ฅผ ๊ฐ€์ ธ์™€์„œ MacOS app ์„ ๋งŒ๋“ค ์ˆ˜ ์žˆ๊ฒŒ ํ•˜๋Š”Xcode ๊ธฐ๋Šฅ์„ ๋ฐœํ‘œํ–ˆ๋‹ค. ๋‹จ์ง€ ์ฒดํฌ๋ฐ•์Šค ํ•˜๋‚˜๋งŒ์œผ๋กœ! 1. iOS ํ”„๋กœ์ ํŠธ๋ฅผ ์—ด์–ด์„œ ํ”„๋กœ์ ํŠธ ์•„์ด์ฝ˜ ํด๋ฆญ ํ›„ ์•ฑ ์„ค์ •์œผ๋กœ ์ด๋™. 2. App ์„ค์ •์—์„œ Deployment Info > Mac Catalyst ์ฒดํฌ ! 3) apple id ๋กœ๊ทธ์ธ ๋ฐ Team ์„ ํƒ 4) ์œ„์— target ์ด Mac ์œผ๋กœ ๋ฐ”๋€ ๊ฒƒ ํ™•์ธ. 5) ์ฃผ์˜์‚ฌํ•ญ. macOS ํƒ€๊ฒŸ ๋ฒ„์ „์ด ์ปดํ“จํ„ฐ macOS ๋ฒ„์ „๋ณด๋‹ค ๋†’์œผ๋ฉด ๋นŒ๋“œ๊ฐ€ ์•ˆ๋œ๋‹ค. ๊ทผ๋ฐ ๋‚œ Big Sur(11.6)์— 11.5๋กœ..

[Udemy iOS & Swift Bootcamp] SwiftUI Layout Design - Spacers, Subviews (SwiftUI ๋กœ ๊ธฐ๋Šฅ์ด ์žˆ๋Š” ์•ฑ ๋งŒ๋“ค๊ธฐ)

๊ธฐ์กด์— ๋งŒ๋“ค์—ˆ๋˜ Dice ์•ฑ์„ SwiftUI ๋ฅผ ํ™œ์šฉํ•ด์„œ ๋‹ค์‹œ ๋งŒ๋“ค์–ด๋ณด์ž. 1. ์ด๋ฏธ์ง€ Asset ์ถ”๊ฐ€ https://drive.google.com/uc?export=download&id=1IubA1ewlMRNRh9JKDAT4DY4fMbZONX9j image asset์„ ๋‹ค์šด๋ฐ›์•„์„œ Assets ํŒŒ์ผ์— import ํ•ด์ค€๋‹ค. ๊ฐ ๋‹จ๋ง๊ธฐ์— ๋งž๊ฒŒ ์•Œ์•„์„œ ๋งž์ถฐ ๋“ค์–ด๊ฐ€ ์žˆ๋Š” image ๋“ค... 2. ๋ฐฐ๊ฒฝ ์ด๋ฏธ์ง€ ์ถ”๊ฐ€ํ•˜๊ธฐ 1) ContentView ์˜ ์ดˆ๊ธฐ ๋ชจ์Šต์— ๋ฐฐ๊ฒฝ image ์ฝ”๋“œ ์ถ”๊ฐ€ํ•˜๊ธฐ. import SwiftUI struct ContentView: View { var body: some View { Text("Hello, world!") .padding() } } struct ContentView_Previ..

[Udemy iOS & Swift Bootcamp] H4XOR News(List, ObservedObject, WKWebView)

Algolia Search's API ๋ฅผ ์ด์šฉํ•ด์„œ Hacker News ์‚ฌ์ดํŠธ์˜ ๋ฐ์ดํ„ฐ๋ฅผ iOS ์•ฑ์—์„œ ๋ฆฌ์ŠคํŠธ์™€ ์›น๋ทฐ๋กœ ๋ณด์—ฌ์ฃผ์ž. [Hacker News ์‚ฌ์ดํŠธ] https://news.ycombinator.com/ Hacker News news.ycombinator.com [Algolia Search's API] https://hn.algolia.com/api HN Search powered by Algolia Hacker News Search, millions articles and comments at your fingertips. hn.algolia.com 1. Project ์ƒ์„ฑ H4XOR News ๋ผ๋Š” ์ด๋ฆ„์œผ๋กœ iOS ํ”„๋กœ์ ํŠธ๋ฅผ ์ƒ์„ฑํ•ด์ฃผ์ž. SwiftUI ๋กœ ๋งŒ๋“ค ๊ฒƒ์ด๋‹ค. import Swif..

[Udemy iOS & Swift Bootcamp] Complex Designs and Layouts using SwiftUI

SwiftUI๋กœ ์ข€ ๋” ๋ณต์žกํ•œ ๋””์ž์ธ์€ ์–ด๋–ป๊ฒŒ ๋งŒ๋“ค๊นŒ? 1. background color ์ง€์ •ํ•˜๊ธฐ import SwiftUI struct ContentView: View { var body: some View { ZStack { Color(red: 1.00, green: 0.69, blue: 0.25) .edgesIgnoringSafeArea(.all) Text("Hello, world!") .padding() } } } struct ContentView_Previews: PreviewProvider { static var previews: some View { ContentView() } } Zstack ์œผ๋กœ ์Œ“๋„๋ก ํ•ด์ฃผ๊ณ , ๋งจ ๋ฐ‘์— Color๋ฅผ ๊น”์•„์ค€๋‹ค. Xcode ์—์„œ ์ œ๊ณตํ•˜๋Š” ์ƒ‰์ด ๋ง˜์— ์•ˆ๋“ค๋ฉด ..

[Udemy iOS & Swift Bootcamp] SwiftUI๋ž€? ๊ธฐ๋ณธ ์‚ฌ์šฉ๋ฒ• !

*SwiftUI: Apple์˜ ์ƒˆ๋กœ์šด UI ํ”„๋ ˆ์ž„์›Œํฌ๋กœ Declarative Swift Code ๋กœ ๋งŒ๋“ค์–ด์ง. ์ดˆ๋ณด์ž๋“ค์„ ์œ„ํ•ด iOS ์•ฑ์˜ ๋ ˆ์ด์•„์›ƒ์„ ๋งŒ๋“ค๊ธฐ ์‰ฝ๋„๋ก ๋“œ๋ž˜๊ทธ ์•ค ๋“œ๋กญ ์ฝ”๋“œ ์ƒ์„ฑ ๊ธฐ๋Šฅ์„ ๋งŒ๋“  ๊ฒƒ. ์บ”๋ฒ„์Šค์— ๊ทธ๋ƒฅ ๋“œ๋ž˜๊ทธ ์•ค ๋“œ๋กญํ•˜๋ฉด ํ•„์š”ํ•œ ์ฝ”๋“œ๊ฐ€ ์ž๋™์œผ๋กœ ์ƒ์„ฑ๋œ๋‹ค. ์‹œ๋ฎฌ๋ ˆ์ด์…˜ ๋ทฐ๊ฐ€ ์ œ๊ณต๋˜์–ด ํ™”๋ฉด์—์„œ ๋ฏธ๋ฆฌ ๋ณด๊ณ  ํ…Œ์ŠคํŠธํ•  ์ˆ˜ ์žˆ๋‹ค. UI๋ฅผ ๊ฐ์ฒด๋กœ ๋งŒ๋“ค์–ด์„œ ์žฌ์‚ฌ์šฉ ๊ฐ€๋Šฅํ•œ๊ฒŒ ๊ฐ€์žฅ ํฐ ์žฅ์  ! SwiftUI๋ฅผ ๋งŒ๋“  ๊ฐ€์žฅ ํฐ ์ด์œ ๋Š” ์• ํ”Œ์˜ ํฌ๋กœ์Šค ํ”Œ๋žซํผ(์›Œ์น˜, ๋งฅ, iPhone) ์‚ฌ์šฉ์ž ์ธํ„ฐํŽ˜์ด์Šค๋ฅผ ์‰ฝ๊ฒŒ ๊ตฌ์ถ•ํ•˜๊ธฐ ์œ„ํ•จ์ด๋‹ค. Project Catalyst๋กœ Mac ์•ฑ์œผ๋กœ ๋ฐ”๋กœ ๋ณ€ํ™˜์ด ๊ฐ€๋Šฅํ•˜๋‹ค. iOS 14 ์ด์ƒ์„ ์‹คํ–‰ํ•  ์ˆ˜ ์žˆ๋Š” ์žฅ์น˜์—์„œ๋งŒ ๊ตฌ๋™๊ฐ€๋Šฅํ•จ. iPhone 6S ์ด์ƒ. iPad Air2 ์ด์ƒ. ht..

[Udemy iOS & Swift Bootcamp] Command Line and Terminal

*Shell(์‰˜)๊ณผ Kernel(์ปค๋„ฌ) Shell: ์‚ฌ์šฉ์ž์™€ ์šด์˜์ฒด์ œ ๊ฐ„์— ๋Œ€ํ™”๋ฅผ ๊ฐ€๋Šฅํ•˜๊ฒŒ ํ•ด์ฃผ๋Š” ๋ช…๋ น์–ด ํ•ด์„๊ธฐ ์—ญํ•  Kenel: ์šด์˜์ฒด์ œ์˜ ํ•ต์‹ฌ. ์†Œํ”„ํŠธ์›จ์–ด์™€ ํ•˜๋“œ์›จ์–ด๊ฐ„์˜ ์ปค๋ฎค๋‹ˆ์ผ€์ด์…˜์„ ๊ด€๋ฆฌํ•˜๋Š” ํ”„๋กœ๊ทธ๋žจ *Shell ์ข…๋ฅ˜ 1) ๊ทธ๋ž˜ํ”ฝ ์‚ฌ์šฉ์ž ์ธํ„ฐํŽ˜์ด์Šค ์‰˜(GUI) 2 ์ปค๋งจ๋“œ๋ผ์ธ ์ธํ„ฐํŽ˜์ด์Šค(CLI) *Bash = Bourne Again Shell : Unix ๊ธฐ๋ฐ˜ Command Line ์‹œ์Šคํ…œ *Command Line ์„ ์‚ฌ์šฉํ•˜๋Š” ์ด์œ ? : ๋” ํฐ ํ†ต์ œ๋ ฅ์„ ์œ„ํ•ด. ๋” ๊ฐ„๋‹จํ•˜๊ณ  ๋น ๋ฆ„. * Command Line ๋ช…๋ น์–ด ls ํด๋” ๋ณด๊ธฐ cd ( change directory) ํด๋” ์ด๋™ cd ~ ๋ฃจํŠธ ํด๋”๋กœ ์ด๋™ mkdir ํด๋” ์ƒ์„ฑ touch Text2.txt Text2.txt ํŒŒ์ผ ์ƒ์„ฑ oepn Text..

[Udemy iOS & Swift Bootcamp] iOS Application Lifecycle

์•ฑ์˜ ์ƒํƒœ ๋”ฐ๋ผ ์ˆ˜ํ–‰ํ•ด์•ผํ•  ์ผ๋“ค์ด ์žˆ๋‹ค. ์ด ๋•Œ iOS App Lifecycle ์˜ UIApplicationDelegate ํ•จ์ˆ˜๋“ค์„ ์ด์šฉํ•ด์„œ ์ฒ˜๋ฆฌํ•ด์ฃผ์ž. https://developer.apple.com/documentation/uikit/app_and_environment/managing_your_app_s_life_cycle Managing your app’s life cycle | Apple Developer Documentation Respond to system notifications when your app is in the foreground or background, and handle other significant system-related events. developer.apple...

[Udemy iOS & Swift Bootcamp] ViewController Lifecycle

1. viewDidLoad() ํ˜ธ์ถœ. ๋ชจ๋“  IBOutlet, IBAction ๋“ฑ ๋ทฐ์™€ ๊ด€๋ จ๋œ ๋ชจ๋“  ๊ฐœ์ฒด๊ฐ€ ์—ฐ๊ฒฐ๋˜์–ด access ๊ฐ€๋Šฅ์ƒํƒœ๊ฐ€ ๋จ. 2. viewWillAppear() ํ˜ธ์ถœ. ํŠน์ • UI ์š”์†Œ๋ฅผ ๋ณด์—ฌ์ฃผ๊ฑฐ๋‚˜ ์ˆจ๊น€์ฒ˜๋ฆฌ 3. viewDidAppear() ํ˜ธ์ถœ ๋ทฐ๊ฐ€ ํ™”๋ฉด์— ๋‚˜ํƒ€๋‚˜์„œ ๋ณด์—ฌ์ง€๊ฒŒ ๋จ. 4. viewWillDisappear() ํ˜ธ์ถœ ๋’ค๋กœ๊ฐ€๊ธฐ ๋ฒ„ํŠผ์„ ๋ˆŒ๋ €์„ ๋•Œ, ๋ทฐ์—์„œ ์–ด๋–ค ํ™”๋ฉด ๋ฐ UI ์š”์†Œ๋ฅผ ์‚ญ์ œํ• ์ง€ 5. vieDidDisappear() ํ˜ธ์ถœ ๋ทฐ๊ฐ€ ํ™”๋ฉด์—์„œ ์‚ฌ๋ผ์ง€๊ฒŒ ๋จ. https://developer.apple.com/documentation/uikit/uiviewcontroller

[Udemy iOS & Swift Bootcamp] ์ฑ„ํŒ… ์™„์„ฑํ•˜๊ธฐ 3 (์ƒ๋‹จ Navigation Bar ๊พธ๋ฏธ๊ธฐ)

3. ์ƒ๋‹จ ๋„ค๋น„๊ฒŒ์ด์…˜๋ฐ” ๊พธ๋ฏธ๊ธฐ ๋ฐ‹๋ฐ‹ํ•œ ์ƒ๋‹จ๋ฐ”๋ฅผ ๊พธ๋ฉฐ์ฃผ์ž. 1) ๋„ค๋น„๊ฒŒ์ด์…˜ ๋ฐ”์˜ ์ƒ‰์ƒ ๋ณ€๊ฒฝ navigation controller์˜ navigation bar ๋ฅผ ์ด์šฉํ•ด์„œ ์ „์ฒด navigation bar์˜ bar tint ๋ฅผ ํŒŒ๋ž€์ƒ‰์œผ๋กœ ๋ณ€๊ฒฝํ•˜๊ณ  ํฐํŠธ ์ƒ‰์ƒ๊ณผ ํฌ๊ธฐ๋ฅผ ๋ณ€๊ฒฝํ–ˆ๋‹ค. ์ฐธ๊ณ ๋กœ ์ƒ๋‹จ Navigation ๋ฐ”๋ฅผ ๋ณด์ด๊ฑฐ๋‚˜ ์ˆจ๊ธฐ๊ณ  ์‹ถ์œผ๋ฉด navigationController์˜ isNavigationBarHidden ์†์„ฑ์„ ์ด์šฉํ•˜๋ฉด๋œ๋‹ค. https://developer.apple.com/documentation/uikit/uinavigationcontroller UINavigationController | Apple Developer Documentation A container view controller t..

728x90