https://github.com/TTTAttributedLabel/TTTAttributedLabelの Xamarin バインディングを使用しています
そして、以下のように - UILabel.attributedText でリンクを作成 *青色ではなく*下線付き *なし
self.label.linkAttributes = @{NSForegroundColorAttributeName: color,
NSUnderlineStyleAttributeName: @(NSUnderlineStyleNone)};
リンク属性を設定したいのですが、構文がよくわかりません -
私はこれらのバリエーションを試しました -
label.LinkAttributes = new NSDictionary(
new NSString("NSForegroundColorAttributeName"), UIColor.Red,
new NSString("NSUnderlineStyleAttributeName"), new NSUnderlineStyle() == NSUnderlineStyle.Double);
label.LinkAttributes = new NSDictionary(
new NSString("NSForegroundColorAttributeName"), UIColor.Red,
new NSString("NSUnderlineStyleAttributeName"), new NSNumber(2));
しかし、機能していません。使用可能な Type が表示されないため、UIColor を渡す方法がわからないため、このコードで下線 + 青色をワイプして「何か」を実行しています。