일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |
- dp
- 구현
- 세브란스
- 독일어독학
- 부주상골증후군
- 리눅스
- 분할정복
- 프로그래머스
- 스택
- BFS
- 부주상골수술후기
- 독일어
- 카카오인턴십
- 독학
- 코테
- sql
- DFS
- 부주상골
- 카카오인턴
- 백준
- 롯데정보통신
- ChatGPT
- IOS
- 카카오코테
- istringstream
- c++
- SQLD
- SWIFT
- 부주상골수술
- 코딩테스트
- Today
- Total
목록14일만에 IOS 앱 끝내기 챌린지 (9)
슈뢰딩거의 고등어
개인 프로젝트 도중, User 와 Post 에 사용할 모델을 만들어야 했다. 일단 Post 는 별 생각 없이 구조체로 만들었는데, 클래스로 만들어도 되지않나? 라는 생각이 문득 들어서 챗지피티에게 물어봤다. The choice between using a structure (struct) or a class (class) depends on the specific requirements and characteristics of your application. Here are some factors to consider: Mutability: Structures are value types, meaning they are typically immutable. When you create a new inst..

요즘 연습 겸 따라 만들고 있는 앱이 있는데 그 앱에서 사용자의 위치를 얻어서 사용하는 기능이 있더라 그 기능을 만들기 위해 위치정보를 얻어올수 있는 코드를 작성해보았다. 간단하게 챗지피티에게 LoationView 와 LocationManager 를 만들게 하고 일부 수정한 뒤 실행해보았다. [코드] 더보기 // // LocationView.swift // Navigation // // Created by jhmin on 2023/04/08. // import SwiftUI struct LocationView: View { @StateObject private var locationManager = LocationManager() var body: some View { VStack { if let loc..

https://youtu.be/zP1LFgBO8Jg Spin 버튼을 누를때마다 그림들이 랜덤으로 바뀌고, 그에 따라 점수가 더해지거나 감해진다. 세 그림이 같으면 +15 그렇지 않으면 -5 // // ContentView.swift // Slot // // Created by jhmin on 2023/03/04. // import SwiftUI struct ContentView: View { @State private var score = 1000 @State private var pic1 = "apple" @State private var pic2 = "apple" @State private var pic3 = "apple" var body: some View { VStack { Text("SwiftU..

https://youtu.be/2oT32JUH1s0 https://youtu.be/kwz9-EjL7dY Deal 버튼을 누를때마다 카드들이 랜덤으로 변경되고, 카드를 비교하여 점수를 주는 것을 확인 할 수 있다. // // ContentView.swift // war challenge // // Created by jhmin on 2023/02/26. // import SwiftUI struct ContentView: View { // Initiate state properties // private : Since It's only this content view that depends on these state properties @State private var playerCard = "card5" ..

https://www.youtube.com/watch?v=Xx9HjAB-Zz0 버튼을 눌렀을때 반응하는 것을 알 수 있다. // // ContentView.swift // test project // // Created by jhmin on 2023/03/01. // import SwiftUI struct ContentView: View { var body: some View { VStack { // Button instance with closure Button("Click me", action: { print("Hello world") }) // Button instance with trailing closure Button("Click me") { print("Hello world") } // Bu..
LESSON 8 : 구조체 https://youtu.be/voviIrX7bXU struct ChatView { // Properties var message = "" var messageWithPrefix:String { "Min says: " + message // 한줄만 있을 경우, return 을 명시해줄필요 없음 } var messageWithPrefix2:String { let prefix = "Min says: " // 한줄이상일 경우, return 명시해주어야함 return prefix + message } // View code for this screen // Methods func sendChat() { // Code to send the chat message print(message..

https://codewithchris.com/lesson3/ 14 Day Beginner Challenge – Lesson 3 – How To Build User Interfaces 14 Day Beginner Challenge Lesson 3 - How To Build User Interfaces https://youtu.be/K6FXSVc-axM if you enjoyed this lesson, please consider supporting me by subscribing. Thanks! ❤️ In this lesson, I’ll show you how to use Xcode to build user interface codewithchris.com https://codewithchris.com/..
LESSON 6 : 변수/상수 https://www.youtube.com/watch?v=72JNNU2otF4 const 는 let 으로 사용 변수타입을 직접 지정할 필요 없이 var myVar = "hi" // String 으로 알아듣는다. 1/0 을 true/false 로 읽지는 않는다. LESSON 7 : 함수 https://youtu.be/ce6W9E82lOA import UIKit func myFunc() { let a = 10 let b = 20 print(a + b) } myFunc() // 30 import UIKit func myFunc(a:Int) { let b = 20 print(a + b) } myFunc(a: 3) //23 import UIKit func myFunc(a:Int) -..