
UITableView 를 Swipe 해서 cell 을 remove 해보겠습니다. 코드로 작성해야합니다. func tableView(_ tableView: UITableView, commit editingStyle: UITableViewCell.EditingStyle, forRowAt indexPath: IndexPath) { if editingStyle == .delete { dataArray.remove(at: indexPath.row) tableView.deleteRows(at: [indexPath], with: .fade) } else if editingStyle == .insert { } } 이렇게 작성하면 끝입니다. 잘 나오네요. 전체 코드입니다. import UIKit class ViewCon..

UITableView 의 cell 사이에 이렇게 구분선 이 나오죠. 저 gray line 을 없애보겠습니다. 먼저 스토리보드에서는 테이블뷰를 선택한 후에 Separator 를 None 으로 변경하면 됩니다. 코드로는 import UIKit class ViewController3: UIViewController { @IBOutlet var myTableView: UITableView! override func viewDidLoad() { super.viewDidLoad() // 테이블뷰 라인 없애기 myTableView.separatorStyle = .none } } 이렇게 하면 됩니다. 끝입니다.

UITableView 의 cell 을 select 했을 때 이렇게 나오죠. 저 gray background 를 없애보겠습니다. 먼저 스토리보드에서는 테이블뷰를 선택한 후에 Selection 을 No Selection 으로 변경하면 됩니다. 코드로는 func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { let cell = UITableViewCell() cell.textLabel?.text = "TableView row \(indexPath.row)" // 테이블뷰 선택 색상없애기 cell.selectionStyle = .none return cell } 이렇게 하면 됩니다. 끝입니다.
- Total
- Today
- Yesterday
- 심사
- Xcode
- 리젝
- 프로그레스
- localizing
- indicator
- 인디케이터
- 테이블뷰
- permission
- Authorization
- TabView
- TabBar
- Reject
- SKProductsRequestDelegate
- SKPayment
- picker
- SWIFT
- 아이오에스
- swiftUI
- AppStore
- 로컬라이징
- ios
- 다국어
- presentationcompactadaptation
- 스위프트
- Language
- Localizations
- SKPaymentTransactionObserver
- 엑스코드
- custom segment
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |