2011-03-16 15 views

Respuesta

74
UIFont *myFont = [ UIFont fontWithName: @"Arial" size: 18.0 ]; 
cell.textLabel.font = myFont; 

UIFont reference

37

Cambie el tamaño de letra y la familia de fuentes.

cell.textLabel.font=[UIFont fontWithName:@"Arial" size:16]; 

cambio de tamaño de la fuente

cell.textLabel.font=[UIFont systemFontOfSize:22.0]; 
+0

¡Gracias! Me funcionó. – Raja

7

Prueba este

 cell.textLabel.font=[UIFont systemFontSize:15.0f]; 

Todo lo mejor.

5

Usted puede intentar

cell.textLabel.font = [UIFont boldSystemFontOfSize:yourSize]; 

o

cell.textLabel.font = [UIFont systemFontOfSize:yourSize]; 
4

O si lo que desea es cambiar el tamaño de fuente que puede utilizar

cell.textLabel.font = [UIFont systemFontOfSize:13.0f];

11

Otra simple:

cell.textLabel.font = [cell.textLabel.font fontWithSize:19]; 

esta manera se cambia sólo el tamaño de la fuente manteniendo todo el formato de fuente.

+0

¡Eso es hombre limpio! –

1

sencillo

myLabel.font = [UIFont boldSystemFontOfSize:14]; 
2

Swift 3 Versión:

cell?.textLabel?.font = UIFont.init(name: "Helvetica", size: 12) 

Advertencia: si se escribe un nombre de fuente equivocada, esta operación será simplemente ignorado (que no se utilizará el tipo de letra predeterminado con el tamaño especificado).

Cuestiones relacionadas