プロジェクトで使用したいのですが、標準セット ( 、など)以外NSAttributedStringの色を設定しようとすると、これらの文字が白色で表示されます。これがこのコードの私の行です。redColorblackColorgreenColorUILabel
[attributedString addAttribute:NSForegroundColorAttributeName
value:[UIColor colorWithRed:66
green:79
blue:91
alpha:1]
range:NSMakeRange(0, attributedString.length)];
Core Image フレームワークから色を作成しようとしましCIColorたが、同じ結果が表示されました。正しい方法で実行するには、コードの何を変更する必要がありますか?
みんな、答えてくれてありがとう!