我似乎无法更改 UITableView 中 DetailTextLabel 的颜色。
我可以更改字体和大小,但不能更改颜色。这是我的代码:
public override UITableViewCell GetCell (UITableView tableView, MonoTouch.Foundation.NSIndexPath indexPath)
{
UITableViewCell cell = new UITableViewCell (UITableViewCellStyle.Value1, cellIdentifier);
cell.TextLabel.Text = Label;
cell.TextLabel.AdjustsFontSizeToFitWidth = true;
cell.UserInteractionEnabled = false;
cell.DetailTextLabel.Font = UIFont.SystemFontOfSize (13f);
cell.DetailTextLabel.Text = Data;
cell.DetailTextLabel.AdjustsFontSizeToFitWidth = true;
cell.DetailTextLabel.TextColor = new UIColor(0,0,0,0); // THIS BIT NEVER WORKS
// cell.DetailTextLabel.TextColor = UIColor.Black; // NEITHER DID THIS.
}
无论如何,DetailTextLabel 总是以灰色显示。我该如何改变这个?