开发者

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

开发者 https://www.devze.com 2023-02-03 14:56 出处:网络
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 o

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

精彩评论

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