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

Peppo

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

Peppo

검색하기 폼
  • 분류 전체보기 (221)
    • Story (13)
    • iOS (143)
      • Error (11)
    • 알고리즘 (43)
    • ETC (7)
    • React-Native (0)
    • CS (Computer science) (3)
  • 방명록

Swift required (1)
[Swift] 프로토콜 (Protocol)

요즘 ModernRIBs를 공부하면서 protocol이 굉장히 많이 쓰이길래 이거부터 알아야 코드가 읽힐것 같아 공부를 해봅니다 :) 가봅시닷 프로토콜 (Protocol) 프로토콜은 메소드, 프로퍼티, 다른 작업 또는 기능의 부분에 맞는 요구사항을 청사진을 정의합니다. 인터페이스이며, 구현은 하지 않습니다. 정의만 합니다. 구현은 해당 프로토콜을 채택한 곳에서 합니다. 여기서 채택 이란 이겁니다. 알게 모르게 많이 써왔던건데 오늘 자세하게 공부해봅시다! 프로토콜 문법 (Protocol Syntax) 프로토콜은 클래스, 구조체, 열거형과 유사한 방법으로 정의 합니다. protocol SomeProtocol { // protocol definition goes here. } 프로토콜을 채택하는 방법 - 구조..

iOS 2022. 1. 16. 17:46
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
  • Peppo's Github
TAG
  • swift protocol
  • Swift 프로그래머스
  • Swift ModernRIBs
  • Swift Leetcode
  • swift reduce
  • RTCCameraVideoCapturer
  • Swift 알고리즘
  • Swift final
  • swift property
  • Swift joined()
  • Swift joined
  • 원티드 프리온보딩
  • RIBs tutorial
  • Swift RIBs
  • removeLast()
  • 2023년 회고
  • Swift inout
  • ios
  • Swift 프로퍼티
  • Class
  • CS 네트워크
  • Combine: Asynchronous Programming with Swift
  • Swift Error Handling
  • Swift
  • swift (programmers)
  • swift programmers
  • iOS error
  • swift 고차함수
  • Swift 내림차순
  • Swift init
more
«   2025/07   »
일 월 화 수 목 금 토
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
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바