Neil
Neil

Reputation: 2058

Unique Invisible Characters? Objective C

I'm wondering if it is possible to have unique characters that cannot be seen through a label but still represent something.

So if I wrote:

12*12(2$2)
Appear as: 12*12(22)  or   12*12(2 2)

"$" would be the invisible character but then I could use the replace text function to replace it later with ** per say.

Upvotes: 3

Views: 3068

Answers (1)

Felix
Felix

Reputation: 35394

Maybe you can use non-breakable-space for that: @"\u00a0".

See http://en.wikipedia.org/wiki/Whitespace_character for a list of other whitespace characters.

Upvotes: 4

Related Questions