iOS 개발자 TDCIAN

  • 홈
  • 태그
  • 방명록

iOS/Reactive Programming in iOS 2

[RxSwift] .subscribe { }와 .subscribe(onNext: { })의 차이

// .subscribe { } Observable.just("Tell me something~") .subscribe { (string: Event) in print(string.element) // Optional("Tell me something~") } .disposed(by: self.disposeBag) // .subscribe(onNext: { }) Observable.just("Tell me something!") .subscribe(onNext: { (string: String) in print(string) // Tell me something! }) .disposed(by: self.disposeBag) Q. '.subscribe { }' 형태와 '.subscribe(onNext: {..

iOS/Reactive Programming in iOS 2024.03.14

[RxSwift] RxSwift 왜 써야 하나요?

* 본 내용은 RxSwift의 Documentation에 있는 Why.md 문서를 번역한 내용입니다. 다소간의 부정확한 의역이 포함될 수 있으니 위 이미지를 클릭하셔서 원문을 확인하시기를 권장합니다! Rx(Reactive Extensions) 왜 쓰냐면요 Rx를 사용하면 앱을 선언형 프로그래밍의 방식으로 만들 수 있습니다. Bindings Observable.combineLatest(firstName.rx.text, lastName.rx.text) { $0 + " " + $1 } .map { "Greetings, \($0)" } .bind(to: greetingLabel.rx.text) UITableView와 UICollectionView를 구현할 때도 활용할 수 있습니다. viewModel .rows ..

iOS/Reactive Programming in iOS 2022.05.08
이전
1
다음
더보기
프로필사진

iOS 개발자 TDCIAN

  • 분류 전체보기 (76)
    • iOS (67)
      • UIKit (14)
      • SwiftUI (9)
      • Common (34)
      • Reactive Programming in iOS (2)
      • Objective-C (8)
    • Computer Science (9)

최근글과 인기글

  • 최근글
  • 인기글

Calendar

«   2025/05   »
일 월 화 수 목 금 토
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

Copyright © Kakao Corp. All rights reserved.

티스토리툴바