0
AttributedText我的UILabel的无属性Monotouch。 UIlabel.AttributedText。属性不起作用
var labelText = new NSMutableAttributedString(cell.MessageLabel.Text, underlineStyle: NSUnderlineStyle.ByWord);
foreach (ErrorJson error in messages[indexPath.Section].ErrorsData[indexPath.Row].errorsData.errors)
{
labelText.AddAttribute(CTStringAttributeKey.ForegroundColor, UIColor.FromRGB(255, 230, 58), new NSRange(error.offset, error.length));
labelText.AddAttribute(CTStringAttributeKey.UnderlineColor, UIColor.FromRGB(255, 230, 58), new NSRange(error.offset, error.length));
}
cell.MessageLabel.AttributedText = labelText;
我究竟做错了渲染?
感谢:)
非常感谢!有用 : ) –