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
- map
- Clean Code
- tableView
- HIG
- swift documentation
- Refactoring
- 스위프트
- 리펙토링
- collectionview
- clean architecture
- Observable
- ios
- MVVM
- Xcode
- swiftUI
- uitableview
- Human interface guide
- 리팩토링
- ribs
- 클린 코드
- UITextView
- 리펙터링
- uiscrollview
- 애니메이션
- rxswift
- RxCocoa
- UICollectionView
- Protocol
- combine
- SWIFT
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