YYChan's DB
  • Home
  • About
Sign in Subscribe

iOS First Class

이유찬(Chan YiYu)

02 9월 2025 • 1 min read
Documentation
Swift.org

original

The Swift Programming Language (한국어) | Swift
Swift

korean

iOs 6th Class

* native * android * Java, Kotlin * iOS * Swift, Objective-C * cross platform * react native * Flutter * hybrid * web view * HCJ * apache cordova * 클래스는 구조체에 없는 추가적인 기능이 있음 * 상속 * 프로퍼티는 클래스 내에 포함되는 변수와 상수 * 기본적으로 stored property를 말함 가장 일반적으로 프로퍼티에 초기값을 주는 방법은 init()이다. class Man{ var age : Int = 1 var
14 10월 2025 4 min read

iOS 5th Class

생성자는 func 를 사용하지 않습니다. .init()은 ()과 동일합니다. 클래스에서 init을 직접 설정하지 않더라도 기본값을 넣어주는 용도로 호출해야 합니다.
30 9월 2025 2 min read

iOS 4th Class

Swift에서는 실행문이 하나라도 있다면 {} 사용 import Foundation // 1. Array에 저장된 정수 중 짝수만 필터링하기 let numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] let evenNumbers = numbers.filter { number in return number % 2 == 0 } print("짝수만 필터링: \(evenNumbers)") // [2, 4, 6, 8, 10] // --- // 2. switch
23 9월 2025 3 min read
YYChan's DB © 2025
Powered by Ghost