May12iOS: 매일리 iOS

  • 홈
  • 태그
  • 방명록

swiftclass 1

Swift ;; 클래스(Class), 구조체(Struct)

Class(클래스) 참조(Reference) 타입 : 데이터 전달 시 메모리 위치를 전달 (원본이 변할 수 있음, c언어의 포인터 개념과 유사!) 상속 가능 Struct(구조체) 값(Value) 타입 : 데이터 전달 시 값을 복사하여 전달 (원본이 변할 수 없음) 상속 불가 /*struct*/ struct ValueType { var mutableProperty: Int = 100 //가변 프로퍼티 let immutableProperty: Int = 200 //불변 프로퍼티 static var typeProperty: Int = 300 //타입 프로퍼티 static func typeMethod() { //타입 메서드 print("type method") } } //타입 프로퍼티,메서드 사..

iOS 2022.04.21
이전
1
다음
더보기
프로필사진

  • 분류 전체보기
    • iOS
      • Swift
      • UIKit
    • CS

Tag

swiftasync, syncasync, swiftconcurrent, swift영구저장, grandcentraldispatch, swiftsqlite, DispatchQueue, swiftclass, swiftgcd, MKMapView, UITextField, Swift알고리즘, GCD, 소프티어swift, 소프티어코딩테스트, swiftfunc, mapkit, swiftqueue, Swift, UIKit,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/08   »
일 월 화 수 목 금 토
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

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바