I'm currently using an star/asterisk character to separate syllables in a vocabulary quiz program. But, I would prefer to use a black dot that sits about midway between the top and bottom of the line height. So, my questions are
1) How do I find the unicode for this character?
edit: from wikipedia, it looks like the character might be "middle dot", U+00B7
2) How do I display it?
Adding a Unicode keyboard To install a Unicode keyboard on your iPhone or iPad, launch the App Store and download the free UniChar app. Then launch Settings, General, Keyboard, Keyboards, Add New Keyboard…, and select UniChar from the options.
To insert a Unicode character, type the character code, press ALT, and then press X. For example, to type a dollar symbol ($), type 0024, press ALT, and then press X.
This is a unique “code point,” or hexadecimal (base 16) number within the Unicode world. on newer Apple keyboards or press Command-Control-spacebar to bring it up.) In the Search field, enter the code point and the corresponding character appears.
On your standard Mac keyboard, just type Option and the Unicode number for the character, and the character is applied to whatever text field you're currently typing in. As an example, Mac keyboards have special symbols that indicate Control, Option, and Command (Cmd).
You can just escape unicode characters inside NSString like this:
NSString *string = @"Hi \u00B7 there!";
Here's the great website to reference Unicode codes and how to place them inside programming languages (encodings section).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With