[Swift] UITableView cell 선택하기 (프로그래밍 방식) 프로그래밍 방식으로 UITableView cell을 선택하는 방법 선택할 row, section을 입력 후 selectRow 사용 let path = NSIndexPath(row: 0, section: 0) tableView.selectRow(at: path as IndexPath, animated: false, scrollPosition: .none) iOS/Swift + Objective-c 2023.03.08
[Swift / Objective-c] UITableView 셀 구분선 없애는 방법 (separatorStyle) UITableView 셀 구분선 없애는 방법 Separator: UITableView 셀과 셀 사이에 있는 구분선 viewDidLoad에서 설정해주면 됩니다. Swift tableView.separatorStyle = .none Objective-c tableView.separatorStyle = UITableViewCellSeparatorStyleNone; 참고사항 Inspector 창에서도 가능합니다. Attribution Inspector > Separator 스타일 및 색상 설정 가능 iOS/Swift + Objective-c 2021.11.17
[iOS] TableView 빈 행 라인 숨기기 (hide empty table view rows) TableView 사용 시 default로 빈 행에도 라인이 보여진다. 빈 행에 있는 라인을 숨기기 위해 아래 코드를 사용한다. // objective-c tableView.tableFooterView = [[UIView alloc] initWithFrame:CGRectZero]; // swift tableView.tableFooterView = UIView(frame: .zero) iOS/Swift + Objective-c 2021.01.16