반응형
iOS Swift 테이블뷰 삭제 버튼 이름 변경 (TableView delete button title change)
UITableView 를 Swipe 했을 때 나오는 삭제 버튼명을 변경해보겠습니다. 기본은 Delete 로 나옵니다. UITableViewDelegate 를 상속 받으신 후에 진행해야합니다. func tableView(_ tableView: UITableView, titleForDeleteConfirmationButtonForRowAt indexPath: IndexPath) -> String? { return "삭제" } 이 코드를 작성하면 됩니다. 잘 변경됐네요. 전체 코드입니다. import UIKit class ViewController3: UIViewController, UITableViewDataSource, UITableViewDelegate { @IBOutlet var myTableView:..
iOS Swift + UIKit
2021. 1. 22. 09:29
반응형