[Swift] UITableView 셀 투명하게 하기

김혜수·2021년 7월 28일
0

iOS를 개발하면서..

목록 보기
5/20
func tableView(_ tableView: UITableView, willDisplay cell: UITableViewCell, forRowAt indexPath: IndexPath) {
        cell.backgroundColor = .clear
}

UITableViewDelegate에 위의 코드를 적어준다.
그리고 ViewDidLoad에서 tableview.backgroundColor = .clear 도 해준다.

profile
iOS를 좋아하는 사람

0개의 댓글