본문 바로가기
반응형

SWiFT12

RxSwift property observe (BehaviorRelay, Variable) RxSwift property observe (BehaviorRelay, Variable) property 구독하기 property를 구독하기 위하여 BehaviorRelay를 사용한다. RxSwift 4.0 이전에는 Variable을 사용했었다. 하지만 Variable은 Depreated가 예정 되었고 BehaviorRelay가 새로 나오게 되었다. Variable을 사용하게 되면 xcode console창에 아래와 같이 경고가 발생한다. Variable은 deprecated가 예정되었습니다. BehaviorRelay로 변경해주세요. [DEPRECATED] `Variable` is planned for future deprecation. Please consider `BehaviorRelay` as a.. 2019. 5. 25.
RxSwift 객체 구독하기 (Observable) RxSwift 객체 구독하기 (Observable) 포스팅 하기에는 정말 민망할 정도로 자세하게 홈페이지에 설명이 작성되어 있다. 영어로 작성이 되어있지만 오른쪽에 한국어로 변경이 가능하도록 되어 있어 편하게 볼수 있다. Observable : 식별할 수 있는, 관찰할 수 있는 http://reactivex.io/documentation/observable.html ReactiveX - Observable Observable In ReactiveX an observer subscribes to an Observable. Then that observer reacts to whatever item or sequence of items the Observable emits. This pattern facil.. 2019. 5. 18.
RxSwift (ReactiveX) RxSwift (ReactiveX) RxSwift는 Rx 와 Swift의 합성어다. Rx : Reactive extension 2019. 4. 26.
Swift Contacts read and write (주소록 읽기, 쓰기) Swift Contacts read and write (주소록 읽기, 쓰기) Swift Contacts read and write. 주소록에 이름, 전화번호, email을 읽고 쓰는 작업들이 필요했다. iOS 9.0이상 일경우 하기와 같은 방법으로 사용할 수 있다. NSContactsUsageDescription등록하기 주소록에 접근하기 위해서는 권한을 반드시 획득 받아야 한다. iOS 10.0 이상 에서는 반드시 plist에 NSContactsUsageDescription을 등록 해야 한다. NSContactsUsageDescription을 등록하는 방법이다. 일단 plist파일을 찾는다!! 방법은 2가지가 있다. 둘중에 편한 방법으로 추가하면 된다. 1. plist파일을 source형태로 열어서 xm.. 2019. 1. 13.
반응형