开发者

How can I insert a trademark symbol (TM) in a UITextView?

How do I place a trademark开发者_开发百科 symbol or "TM" in a UITextView?


It is Unicode character U+2122: ™


You can also just copy and paste it- ™


You should be able to just type it, The keycode is option-2 on os x.


To get "TM" symbol into a string, for instance, you'd write the string like this:

let stringphrase: String = "CopyPasta \u{2122} is the name of our new company"

Forward Slash '\': indicates that what comes after isn't to be read literally as a character. The small 'u': short for unicode The squiggly brackets '{}': What's inside is code, in this case it's the unicode identifer '2122; for the TM (trademark) symbol.

COPYRIGHT Unicode = 00A9 (those are zeroes not capital 'O')

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜