我可以减少iphone桌面标题的字体大小吗
问题描述:
我需要减少表格视图标题的字体大小。我的字符串值有点长,并且不适合标题。所以计划缩小尺寸。任何人都知道如何减小尺寸,这样我就可以将字符串添加到我的表格视图标题中。我可以减少iphone桌面标题的字体大小吗
由于提前, 世斌
答
你目前如何设置串在你的表视图的标题?
我想像你是你的表的标题视图设置为一个UILabel对象:
UILabel *headerLabel = [[[UILabel alloc] initWithFrame: CGRectMake(0, 0, 320, 50)] autorelease];
headerLabel.font = [UIFont systemFontOfSize: 14];
headerLabel.text = @"Nice and Long Table View Header Label String";
tableView.tableHeaderView = headerLabel;
可你刚才设置标签的字体如上?
非常感谢... – smakstr 2009-11-09 06:58:27