2010-05-06 9 views

Respuesta

75

Shift-option-8?

+0

¡Eres un gran hombre! Gracias. – Getsy

+0

nice.super ..... –

+0

No estoy seguro de por qué esto está en forma de pregunta, pero de hecho es la respuesta. – 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

En Swift

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

En Xcode 8.0: Pulse Control + Comando + Barra espaciadora o Xcode-> Editar-> Emoji & Símbolos, después buscar los símbolos de grado de la pantalla emergente. Puede agregar fácilmente los componentes UILabel o TextView.

Cuestiones relacionadas