0
AttributedText de mon UILabel rendu sans attributsMonotouch. UIlabel.AttributedText. Les attributs ne fonctionne pas
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;
ce que je fais mal?
Merci:)
merci beaucoup! Ça marche :) –