![](http://i1.daumcdn.net/thumb/C148x148.fwebp.q85/?fname=https://blog.kakaocdn.net/dn/vxGXp/btrqLUnMZ58/E8mmfddvh7Sskif1gXWPfK/img.jpg)
요즘 ModernRIBs를 공부하면서 protocol이 굉장히 많이 쓰이길래 이거부터 알아야 코드가 읽힐것 같아 공부를 해봅니다 :) 가봅시닷 프로토콜 (Protocol) 프로토콜은 메소드, 프로퍼티, 다른 작업 또는 기능의 부분에 맞는 요구사항을 청사진을 정의합니다. 인터페이스이며, 구현은 하지 않습니다. 정의만 합니다. 구현은 해당 프로토콜을 채택한 곳에서 합니다. 여기서 채택 이란 이겁니다. 알게 모르게 많이 써왔던건데 오늘 자세하게 공부해봅시다! 프로토콜 문법 (Protocol Syntax) 프로토콜은 클래스, 구조체, 열거형과 유사한 방법으로 정의 합니다. protocol SomeProtocol { // protocol definition goes here. } 프로토콜을 채택하는 방법 - 구조..
iOS
2022. 1. 16. 17:46
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- Swift 내림차순
- swift programmers
- Swift 프로퍼티
- swift protocol
- RIBs tutorial
- 원티드 프리온보딩
- RTCCameraVideoCapturer
- Swift init
- 2023년 회고
- ios
- swift 고차함수
- Swift 알고리즘
- Swift ModernRIBs
- CS 네트워크
- Swift Error Handling
- swift property
- Combine: Asynchronous Programming with Swift
- Swift joined()
- iOS error
- swift (programmers)
- removeLast()
- Swift
- Swift joined
- swift reduce
- Class
- Swift final
- Swift inout
- Swift RIBs
- Swift 프로그래머스
- Swift Leetcode
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함