Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 | 29 | 30 |
| 31 |
Tags
- mssql
- IOS
- Unity
- swift
- python
- 함수
- port
- 라즈베리파이
- 맛집
- PyQt5
- tensorflow
- PyQt
- 날짜
- GIT
- urllib
- PER
- Linux
- ASP
- node.js
- javascript
- 다이어트
- sqlite
- 유니티
- MS-SQL
- ubuntu
- MySQL
- Excel
- 리눅스
- pandas
- flutter
Archives
아미(아름다운미소)
[Swift] 셀 선택시, 셀의 배경색깔을 바꾸고 싶을때 본문
셀의 배경색깔을 바꾸고 싶을때
셀 을 선택하면 뒷 배경색깔이 나타나게 되는데 다음의 코드를 넣어주시면, 아래와 같이 셀의 배경색이 변경이 됩니다.override func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
var cell = tableView.cellForRowAtIndexPath(indexPath)!
cell.contentView.backgroundColor = UIColor.whiteColor()
}
'랭귀지 > SWIFT' 카테고리의 다른 글
| Xcode에서 UINavigationController를 사용할 때 UIStatusBar의 배경색을 변경하는 방법 (0) | 2018.05.12 |
|---|---|
| [Swift] 스위프트 사이드메뉴 테이블셀 선택시, 셀의 배경색깔을 바꾸고 싶을때 (0) | 2018.05.07 |
| Swift 3.0 SWRevealViewController 전면 뷰 컨트롤러의 뷰를 비활성화 (0) | 2018.04.27 |
| XCode9: iPhone is busy 메시지 관련 (0) | 2018.04.09 |
| Xcode - 빌드 오류 Development cannot be enabled while your device is locked (0) | 2018.03.26 |
Comments
