setdelegate1 [UIKit/RxSwift] UITableView를 RxSwift로 구현하는 방법 1. 데이터 바인딩1) 기존 방식기존의 방식으로 데이터를 바인딩하려면 UITableViewDataSource 프로토콜을 구현하고cellForRowAt, numberOfRowsInSection 메서드를 작성class NonRxTableViewController: UIViewController, UITableViewDataSource { private let tableView = UITableView() private let cardData: [(title: String, imageName: String)] = [ (title: "Card 1", imageName: "sample1"), (title: "Card 2", imageName: "sample2"), .. 2024. 12. 2. 이전 1 다음