Ios 设置UITextView.textColor无效吗?

Ios 设置UITextView.textColor无效吗?,ios,uitableview,uitextview,Ios,Uitableview,Uitextview,我在UITableViewCell中有一个纯文本(无属性文本)UITextView。我在主情节提要中将UITextViewtextColor设置为“ColorSwatch.Clay”(接近白色的颜色)(背景为深色)。 无效:文本仍为黑色。 即使在设置文本之前在单元格中明确设置textColor,也没有效果。 请帮帮我,这快把我逼疯了!这可能是非常愚蠢的事情,但我宁愿觉得自己愚蠢,保持理智 更新:以下是一些代码: UITableViewDataSource: func tableView(tabl

我在
UITableViewCell
中有一个纯文本(无属性文本)
UITextView
。我在主情节提要中将
UITextView
textColor
设置为“ColorSwatch.Clay”(接近白色的颜色)(背景为深色)。
无效:文本仍为黑色。

即使在设置文本之前在单元格中明确设置
textColor
,也没有效果。

请帮帮我,这快把我逼疯了!这可能是非常愚蠢的事情,但我宁愿觉得自己愚蠢,保持理智

更新:以下是一些代码:

UITableViewDataSource:

func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
    let reviewCell = self.reviewTable.dequeueReusableCellWithIdentifier("ReviewTableViewCell", forIndexPath: indexPath) as! ReviewTableViewCell
    reviewCell.configureFor(reviewManager[indexPath.row])
    return reviewCell
}
ReviewTableViewCell:

@IBOutlet weak var rating: StarRating!
@IBOutlet weak var authorAndDateLabel: UILabel!
@IBOutlet weak var reviewTextArea: UITextView!

func configureFor(review: Review) {
    rating.rating = review.rating

    let authorName = review.author["fullname"] as? String ?? review.author.username
    let date = NSDateFormatter.localizedStringFromDate(review.updatedAt!, dateStyle: .ShortStyle, timeStyle: .NoStyle)

    // For some reason the textColor specified in the storyboard is overriden somewhere...
    reviewTextArea.textColor = ColorSwatch.Clay

    reviewTextArea.text = review.text
}
是这样的

reviewTextArea.textColor
正在覆盖您的
textColor

色样。粘土是白色以外的其他颜色

因此,通过编程将白色设置为
reviewTextArea.textColor


希望这有帮助。

案件结案。我说不出哪里出了问题,但我必须重构UI:删除文本视图,重新添加一个。。。没有,一切都很好。很抱歉给您添麻烦。

您能显示一些代码吗?也许是
cellforrowatinexpath
?对不起,没有粘土是我的“白色”。我编辑我的问题。请检查注释
reviewTextArea.textColor
行。颜色还是黑色吗?是的。我想我的故事板配置被覆盖了,所以我决定将颜色设置得尽可能接近我认为应该使用的地方,并添加了这一行,但没有运气,这让我发疯:)不。对不起,我只能分享这些。但我会试着复制一个小的例子。。。