Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- 독서후기
- 아이폰
- IOS
- Info.plist
- @available
- human interface guidelines
- View Life Cycle
- Modality
- 독후감
- Navigation
- Mock
- SWIFTUI
- NotificationCenter
- 책후기
- contentInset
- delegation
- NumberFormatter
- roundingMode
- mvvm
- 스위프트
- 야곰아카데미
- UIResponder
- 스타트업주니어로살아남기
- Codegen
- Structures and Classes
- xcode
- viewcontroller
- Failed to register bundle identifier
- 부트캠프
- SWIFT
Archives
- Today
- Total
목록DesignPattern (1)
호댕의 iOS 개발
[디자인 패턴] Delegation 패턴
Delegation 패턴은 delgate란 단어에서 볼 수 있듯 특정 Action을 다른 객체가 하도록 위임 하는 것이다. 즉, 특정 Action에 대한 위임을 받은 객체가 대신 일을 처리해주는 것이다. 이는 iOS에서 TableView를 활용하다보면 UITableViewDelegate, UITableViewDataSource라는 프로토콜을 볼 수 있는데, 이 또한 Delegation 패턴을 사용하고 있는 것이다. 애플이 구현해놓은 TableView를 사용할 때 이를 어떻게 구성할 지는 개발자가 정하게 된다. 따라서, TableView가 UITableViewDelegate, UITableViewDataSource라는 프로토콜을 채택한 ViewController에게 테이블 뷰의 Section과 Row는 어..
Software Engineering/iOS
2022. 3. 19. 01:59