Does any one know how to display the copyright icon in UILabel text? This is the icon with a circle around c. The html code for it is: © or ©.
I tried the following code:
UILabel *contactInfo = [[UILabel alloc] initWithFrame:CGRectMake(-55,135,420,100)];
contactInfo.text = @"'©):'2009 Nationwide ";
or
contactInfo.text = @"'©'2009 Nationwide ";
or
contactInfo.text = @"©2009 Nationwide ";
It just prints everything as text and no icon.
This would work in a webView but I need it as UILabel text.
Any help?
If your source files are in UTF-8, what they should be, this should work just fine. Otherwise you should use .strings-files in combination with the NSLocalizedString() macro and put your text into UTF-16 files.
Works for me:
myUILabel.text = @"© by me";(source: hillrippers.ch)
Edit:
Now that I see that you’ve tried to insert the symbol as HTML entity – this does not work, just insert the symbol as it appears.