![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
UILabel
x1198928367
法律上开发围殴覅
展开
-
线程中更新 UILabel的text
[self.label1 performSelectorOnMainThread:@selector(setText:) withObject:textDisplay waitUntilDone:YES]; label1 为UILabel,当在子线程中,原创 2016-05-11 14:03:29 · 2543 阅读 · 0 评论 -
UILabel 添加中划线和下划线
//中划线 NSDictionary *attribtDic = @{NSStrikethroughStyleAttributeName: [NSNumber numberWithInteger:NSUnderlineStyleSingle]}; //下划线 // NSDictionary *attribt原创 2016-05-27 23:01:45 · 652 阅读 · 0 评论 -
UILabel 高度或宽度一定 修改另一方
1、UILabel宽度不变,根据字体多少,自动调整UILabel的高度,并折行显示。 UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(0, 10, 200, 20)]; label.font = [UIFont boldSystemFontOfSize:20.0f]; //UILabe原创 2016-06-28 11:06:35 · 1862 阅读 · 0 评论