땡겨서 나오는 버튼을 만들어보겠습니다. 왼쪽, 오른쪽 가능 UITableViewDelegate 을 상속 받으신 후에 만들고 싶은 방향 매서드를 써주세요. func tableView(_ tableView: UITableView, trailingSwipeActionsConfigurationForRowAt indexPath: IndexPath) -> UISwipeActionsConfiguration? { // 오른쪽에 만들기 } func tableView(_ tableView: UITableView, leadingSwipeActionsConfigurationForRowAt indexPath: IndexPath) -> UISwipeActionsConfiguration? { // 왼쪽에 만들기 } UIContex..
UITableView 를 Swipe 했을 때 나오는 삭제 버튼명을 변경해보겠습니다. 기본은 Delete 로 나옵니다. UITableViewDelegate 를 상속 받으신 후에 진행해야합니다. func tableView(_ tableView: UITableView, titleForDeleteConfirmationButtonForRowAt indexPath: IndexPath) -> String? { return "삭제" } 이 코드를 작성하면 됩니다. 잘 변경됐네요. 전체 코드입니다. import UIKit class ViewController3: UIViewController, UITableViewDataSource, UITableViewDelegate { @IBOutlet var myTableView:..