728x90
반응형
![](http://i1.daumcdn.net/thumb/C148x148/?fname=https://blog.kakaocdn.net/dn/b8QhBg/btqT02i7U3I/kE0NKKb2zkL5APjUgHfEh0/img.gif)
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 } 이렇게 하면 됩니다. 끝입니다.
iOS Swift + UIKit
2021. 1. 19. 11:14
728x90
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- 엑스코드
- permission
- swiftUI
- SWIFT
- 인디케이터
- SKPaymentTransactionObserver
- SKProductsRequestDelegate
- Language
- localizing
- 프로그레스
- Localizations
- TabView
- Authorization
- ios
- 다국어
- SKPayment
- custom segment
- 스위프트
- AppStore
- 테이블뷰
- 아이오에스
- 리젝
- presentationcompactadaptation
- Localized
- 로컬라이징
- 심사
- indicator
- TabBar
- Reject
- Xcode
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함