How can I add a degree sign to a string?
Use the string literal: \u00B0
. For Unicode characters, it will always be "\u" followed by the character code.
NSString *temperature = [NSString stringWithFormat:@"65%@", @"\u00B0"];
This is how you would do it using Swift:
var temperature = "65\u{00B0}" // degree symbol
Just found this very helpful answer but it can even be abbreviated to the following (self explanatory):
NSString *temperature = @"65\u00B0";