2014-10-17 16 views
1

테이블보기에서 셀의 텍스트 색상을 변경하고 싶습니다. 내가 이렇게하면 작동하지 않습니다. xcode6 베타 1에서는 작동하지만 xcode6의 최종 버전에서는 작동하지 않습니다.Swift로 텍스트 색상 변경

코드 :

cellGrow.textColor = UIColor.whiteColor() 

오류 : 'textColor' is unavailable: APIs deprecated as of iOS 7 and earlier are unavailable in Swift

답변

2

는 cellGrow있는 UITableViewCell인가? 이 경우 다음을 사용하십시오. -

cellGrow.textLabel?.textColor = UIColor.whiteColor() 
+0

예, cellGrow는 UITableViewCell입니다. 그것은 완벽하게 작동합니다! 고마워요! – user3576580

+0

대답으로 표시해 주셔서 감사합니다. 나는 또한 upvote 주셔서 감사합니다! –