
UI设置
文章平均质量分 50
zhikang_in_csdn
代码改变世界
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
如何多线程设置按钮倒计时
__weak __typeof(self)weakSelf=self; __block int timeout=59; //倒计时时间 dispatch_queue_t queue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0); dispatch_sour原创 2016-06-10 11:50:51 · 1181 阅读 · 0 评论 -
如何用segment实现选择栏
{ UIView *headView = [[UIView alloc]initWithFrame:CGRectMake(0,0, iPhoneWidth, 37)]; [self.view addSubview:headView]; UISegmentedControl * segment = [[UISegmentedControl allo原创 2016-06-06 14:15:07 · 674 阅读 · 0 评论 -
如何设置在一个Label上显示不同颜色的text
直接贴代码 : if ([dic[@"defaults"] isEqualToString:@"1"]) { NSString *defaultStr = @"[默认]"; NSString *selfTakeStr; if ([dic[@"whether"] isEqualToString:@"0"]) {原创 2016-06-10 10:44:29 · 1369 阅读 · 1 评论 -
关于如何设置阴影的同时裁剪图片
具体实现的套路有两种 1、在图层下方在添加一个背景图层, 分别设置。 self.layerView1.layer.cornerRadius = 20.0f; self.layerView2.layer.cornerRadius = 20.0f; //add a border to our layers self.layerView1.layer.borderWidth原创 2018-01-14 21:51:48 · 353 阅读 · 0 评论