2010-05-06 12 views

Antwort

75

Schaltoption-8?

+0

Sie sind großer Mann! Vielen Dank. – Getsy

+0

nice.super ..... –

+0

Nicht sicher, warum dies in Frage ist Form, aber es ist in der Tat die Antwort. – Mike

3
NSMutableAttributedString *attributedString = [[NSMutableAttributedString alloc] initWithString:@"80\u00b0c"]; 
    [attributedString setAttributes:@{NSFontAttributeName : [UIFont fontWithName:@"Helvetica-light" size:10.0] 
             , NSBaselineOffsetAttributeName : @22} range:NSMakeRange(2, 2)]; 
    //asign this as a 
examplelabel.attributedtext = attributedString; 
1

In Swift

cell.lblTemperature.text = NSString(format:"23%@", "\u{00B0}") as String 
0

In Xcode 8.0: Drücken Sie Strg + Befehl + Leertaste oder Xcode-> Bearbeiten-> Emoji & Symbole, Suche später den Grad Symbole von Pop-up-Fenster. Sie können die UILabel- oder TextView-Komponenten ganz einfach hinzufügen.