Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/iphone/37.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/kotlin/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何更改iphone 3.0上UITableViewCellStyleSubtitle单元格的字体大小_Iphone_Cocoa Touch_Uitableview - Fatal编程技术网

如何更改iphone 3.0上UITableViewCellStyleSubtitle单元格的字体大小

如何更改iphone 3.0上UITableViewCellStyleSubtitle单元格的字体大小,iphone,cocoa-touch,uitableview,Iphone,Cocoa Touch,Uitableview,我知道您以前更改过单元格的字体大小,如下所示: cell.font = [UIFont boldSystemFontOfSize:18]; 我正在使用一个带有样式UITableViewCellStyleSubtitle的初始单元格。如何更改此类型单元格的textlabel和detailtextlabel的字体大小 cell.textLabel.font = [UIFont boldSystemFontOfSize:18]; 3.0更改了UITableViewCell API。我建议您在文档中

我知道您以前更改过单元格的字体大小,如下所示:

cell.font = [UIFont boldSystemFontOfSize:18];
我正在使用一个带有样式UITableViewCellStyleSubtitle的初始单元格。如何更改此类型单元格的textlabel和detailtextlabel的字体大小

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

3.0更改了UITableViewCell API。我建议您在文档中仔细阅读,因为有一些不推荐的方法

您可以在变量中设置主字体,并在需要时分配它

UIFont *cellFont = [UIFont fontWithName:@"Arial" size:10];    
cell.textLabel.font = cellFont;