【发布时间】:2010-11-21 03:07:36
【问题描述】:
我的应用程序中有以下代码。
tmp=[[UILabel alloc] initWithFrame:label1Frame];
tmp.tag=1;
tmp.textColor=[UIColor blackColor];
[tmp setFont:[UIFont fontWithName:@"American Typewriter" size:18]];
tmp.backgroundColor=[UIColor clearColor];
[cell.contentView addSubview:tmp];
[tmp release];
现在,我需要知道,
======> 如何通过代码设置“Typeface=bold”?
【问题讨论】:
-
“标签的阴影偏移量”是指标签阴影的大小吗?
-
@flashcards - 我得到了解决方案,无需寻找影子。 [tmp setshadowoffset:cgsizemake(1,1)];
-
@sagar 您应该将其发布为您自己问题的答案,以便保存。干杯!