Jack BeNimble
Jack BeNimble

Reputation: 36703

How to locate and display a Unicode character in iOS

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?

Upvotes: 6

Views: 14992

Answers (2)

atulkhatri
atulkhatri

Reputation: 11343

Simply copy and paste this " • " or use option+8

Upvotes: 0

Bartosz Ciechanowski
Bartosz Ciechanowski

Reputation: 10333

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).

Upvotes: 15

Related Questions