2013-03-25 89 views

回答

0

,你可以這樣設置

float fontSize = 14.0f; 
NSString *selectorString [email protected]"Helvetica-Bold"; 
cell.textLabel.font = [UIFont fontWithName:[NSString stringWithFormat:@"%@",selectorString] size:fontSize]; 
+0

感謝快速反應...任何想法傳遞字體大小動態標記? – Anjaneyulu 2013-03-25 06:54:31

2

試試這個它可以幫助你。

UILabel *titlelbl=[[UILabel alloc] initWithFrame:CGRectMake(80, 0, 150, 40)]; 
titlelbl.font = [UIFont fontWithName:@"Helvetica-Bold" size:17]; 
titlelbl.textAlignment=UITextAlignmentCenter; 
titlelbl.textColor=[UIColor blackColor]; 
0
#define FONT_HELVETICA_BOLD @"Helvetica-Bold" 
#define FONT_SIZE 14.of 

cell. textLabel.font=[UIFont fontWithName:FONT_HELVETICA_BOLD size:FONT_SIZE]; 
相關問題