iOS/Swift + Objective-c
[Swift] UITableView cell 선택하기 (프로그래밍 방식)
안경 쓴 귀니
2023. 3. 8. 21:06
반응형
프로그래밍 방식으로 UITableView cell을 선택하는 방법
선택할 row, section을 입력 후 selectRow 사용
let path = NSIndexPath(row: 0, section: 0)
tableView.selectRow(at: path as IndexPath, animated: false, scrollPosition: .none)
반응형