1
2
tableView.delaysContentTouches = false
tableView.canCancelContentTouches = true
cs

 

 

 

 

 

1
2
3
4
5
6
7
8
class HighlighTableView: UITableView {
    override func touchesShouldCancel(in view: UIView) -> Bool {
        if view is UIButton {
              return true
        }
        return super.touchesShouldCancel(in: view)
    }
}
cs

'Swfit' 카테고리의 다른 글

swift UserDefaults 데이터 사용하기!  (0) 2023.01.04
앱 기본 언어 한국어로 변경하는 법  (0) 2023.01.03
Status bar text color 변경  (0) 2023.01.03
xcode Launch Screen 부터 느릴때!!  (0) 2022.04.26
스위프트 개발 메모  (0) 2021.01.07

+ Recent posts