Search code examples
iphoneunicodespecial-charactersuilabel

How to show superscript for "®" registered symbol?


I've a issue regarding showing registered symbol as superscript. I've used unicode value \u00AE, but it shows in same line. I'd like to have it a bit top of remaining texts. Done googling, but found superscripts for A-Z, 0-9 characters, which is mentioned in unicode's site.

Sample code:

UILabel *myLabel; //do initialize stuff here

myLabel.text = @"My company\u00AE";

Thanks


Solution

  • Unicode does not have a registered symbol in superscript form so the only way to do it is to use a HTML control and to include it into superscript tags: <sup>&reg;</sup>

    You can check it at http://rishida.net/scripts/uniview/