본문 바로가기 메뉴 바로가기

ZeddiOS

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

ZeddiOS

검색하기 폼
  • 전체 보기 (841)
    • iOS (278)
    • Swift (126)
      • Concurrency (9)
    • SwiftUI (26)
    • Combine (17)
    • watchOS (2)
    • iPadOS (2)
    • Xcode (3)
      • Xcode Cloud (2)
    • Flutter (12)
    • 공부 (205)
    • 피아노 (39)
    • 요리 (2)
    • 시 (25)
    • 일상 (91)
  • 방명록

swift protocol where (1)
Swift ) Protocols (4)

안녕하세요 :) Zedd입니다.프로토콜의 마지막글!! 벌써 4번째 시간이네요 :)키키시작할게요! Class-Only ProtocolsAnyObject프로토콜을 프로토콜의 상속목록에 추가하여 프로토콜 채택을 클래스 타입(구조체 또는 열거형이 아닌)을 제한할 수 있습니다.와 한번에 이해가 가네요. 더 간단하게 말하면 AnyObject를 상속한 프로토콜은 클래스만 채택할 수 있다!!! protocol SomeClassOnlyProtocol: AnyObject, SomeInheritedProtocol { // class-only protocol definition goes here} 이렇게 프로토콜에 AnyObject를 상속받으면, 이제 SomeClassOnlyProtocol은 클래스에서만 채택할 수 있게 된답..

Swift 2017. 12. 17. 21:31
이전 1 다음
이전 다음
TAG
  • np-complete
  • Accessibility
  • actor
  • fastlane
  • swift array
  • Xcode
  • WidgetKit
  • Git
  • 피아노
  • github
  • UIBezierPath
  • swift delegate
  • SwiftUI
  • Swift
  • 회고
  • FLUTTER
  • 스위프트
  • np-hard
  • Combine
  • swift 공부
  • swift3
  • 스위프트 문법
  • iOS delegate
  • ios 13
  • 제이슨 파싱
  • WWDC
  • swift tutorial
  • WKWebView
  • swift sort
  • IOS
more
글 보관함
Total
Today
Yesterday

Blog is powered by Tistory / Designed by Tistory

티스토리툴바