Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
それは可能ですか?
CATextLAyerを使用していない場合、どうすればよいですか?
CATextLayerでNSMutableAttributedStringを使用できます。文字列のさまざまな部分に、色、フォントなどのさまざまな属性を指定できます。
解決策は、単語を文字に分割し、それを3つの異なるテキストレイヤーと組み合わせることでした。私が構築した関数を、それを必要とする他の人のために投稿しようと思います。