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 |
Tags
- MVVM
- Protocol
- HIG
- combine
- swiftUI
- UITextView
- rxswift
- Xcode
- ribs
- uiscrollview
- Observable
- Refactoring
- collectionview
- SWIFT
- 클린 코드
- 리펙토링
- Human interface guide
- 애니메이션
- 리팩토링
- 리펙터링
- tableView
- map
- Clean Code
- RxCocoa
- clean architecture
- 스위프트
- ios
- uitableview
- swift documentation
- UICollectionView
Archives
- Today
- Total
목록addObserver (1)
김종권의 iOS 앱 개발 알아가기
[iOS - swift] 16. notificationCenter
1. 개념 - 특정 객체가 NotificationCenter에 등록된 Event를 발생(post) - 등록된 Observer들이 Event에 대한 행동을 취하는 것 2. 구현 버튼을 클릭하면 Label이 안보이게 하는 내용 1) post (이벤트 발생) @IBAction func unhide(_ sender: Any) { NotificationCenter.default.post(name: NSNotification.Name(rawValue: "unhide"), object: nil, userInfo: nil) } 2) 이벤트 처리 adObserver // in the viewDidLoad NotificationCenter.default.addObserver(self, selector: #selector(..
iOS 기본 (swift)
2020. 7. 11. 10:12