iOS8에서 UITableView 사용할때 select cell color 적용하는 많은 방법중에
다음과 같은 방법이 가장 쉽게 적용가능하다.
func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
...
var bgColorView = UIView()
bgColorView.backgroundColor = UIColor.blueColor()
cell.selectedBackgroundView = bgColorView
}
'iOS > 참고' 카테고리의 다른 글
[ios] javascript -> ios 호출하기 (0) | 2015.11.17 |
---|---|
MFMailComposeViewController 사용해서 메일 보내기 (0) | 2015.05.19 |
[iOS8] UITableView 에서 select cell color 적용하기 (0) | 2015.04.29 |
UIImageView에 tintColor 적용하기 (0) | 2015.04.28 |
앱 초기 실행화면(Splash Screen)에서 상태바 색상(Statusbar style) 지정 (1) | 2015.04.17 |
[발번] iOS Keychain Services Tasks (0) | 2015.03.17 |
댓글을 달아 주세요