
iOS 개발을 하다보면 자식객체에서 부모객체에게 메시지를 보내야 할때가 생긴다. 그럴땐 보통 delegate 패턴을 사용한다. class MySampleDelegateParentsClass: MySampleDelegateChildClassDelegate { var child: MySampleDelegateChildClass init() { self.child = MySampleDelegateChildClass() self.child.delegate = self } func sendMessage(foo: String) { print("recived: \(foo)") } } protocol MySampleDelegateChildClassDelegate: AnyObject { func sendMessage(f..
프로그래밍/Swift
2021. 7. 26. 13:23
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- widget extension
- arc
- swift
- RxSwift
- flatMap
- XCodeGen
- Fastlane
- firebase distribution
- ios
- Delegate
- Protocol
- modulemap
- 순환참조
- XCode Cloud
- iOS wallet
- cicd
- CI
- isSecureTextEntry
- module map
- Swift 니모닉
- iOS 니모닉
- iOS Mnemonic
- associated type
- Objective-C
- Tuist
- cd
- Gitlab Runner
- SwiftUI
- 니모닉
- Secure Enclave
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함