나는 jQuery과 셀 배경 색상으로 재생하고 내가 이런 식으로 할 경우 작동 :jQuery과 셀 배경의 사용자 정의 색상
func tableView(_ tableView: UITableView, willDisplay cell: UITableViewCell, forRowAt indexPath: IndexPath) {
cell.backgroundColor? = UIColor.yellow
}
을하지만 사용자 정의 색상을
func tableView(_ tableView: UITableView, willDisplay cell: UITableViewCell, forRowAt indexPath: IndexPath) {
cell.backgroundColor? = UIColor(red: 255, green: 197, blue: 2, alpha: 1)
}
을 시도하는 경우 그렇지 않은 무엇 맞춤 RGB 색상을 만들려면 어떻게해야합니까?
사용. 'UIColor (빨강 : 255/255., 녹색 : 197/255., 파랑 : 2/255., 알파 : 1)' – Larme
[UIColor가 RGBA 값으로 동작하지 않을 가능성이 있습니다 ] (https://stackoverflow.com/questions/24310696/uicolor-not-working-with-rgba-values) – Larme