본문 바로가기

seong_hye, the developer

검색하기
seong_hye, the developer
프로필사진 seong_hye

  • My P_Life (121)
    • JAVA (3)
    • 알고리즘 코드 (3)
    • IOS (57)
      • SwiftUI (25)
      • UIKit (13)
      • Error (7)
    • Infomation (6)
      • Firebase (1)
      • Git (1)
    • Daily Life (3)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/10   »
일 월 화 수 목 금 토
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
Tags
  • Refresh
  • list
  • Git
  • viewlifecycle
  • Observer
  • SWIFTUI
  • array
  • ScrollView
  • 화면전환
  • segue
  • class
  • SWIFT
  • NotificationCenter
  • uikit
  • 고차함수
  • PushNotification
  • mvvm
  • http
  • calendar
  • 글또
  • escaping
  • struct
  • self
  • CoreImage
  • error
  • apns
  • Switch
  • singleton
  • IOS
  • Animation
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록AnyObject (1)

seong_hye, the developer

Swift) 문법 정리 - 타입 캐스팅(Type Casting) / Any, AnyObject

타입 캐스팅이란?인스턴스의 타입을 확인하거나 어떠한 클래스의 인스턴스를해당 클래스 계층 구조의 슈퍼클래스나 서브 클래스로 취급하는 방법 - 메모리 값을 수정하는 것은 아님- 단순히 해당 타입의 인스턴스인 것처럼 취급하려는 목적class Person { var id = 0 var name = "이름" var email = "abc@gmail.com"}class Student: Person { var studentId = 1}class Undergraduate: Student { var major = "전공"}let person = Person()let student = Student()let undergraduate = Undergradutae()is 연산자타입에 대한 검사를 수행하는 연산자 (..

IOS 2022. 7. 12.
Prev 1 Next

Blog is powered by kakao / Designed by Tistory

티스토리툴바