控件
FL6666
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
iOS UILabel指定文字变颜色
示例: 共有100个商品, 数字显示红色UILabel *testLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 200, 40)];[self.view addSubview:testLabel];// 商品个数假设100NSString *countLength = [NSString stringWithFor原创 2015-11-05 15:43:18 · 947 阅读 · 0 评论 -
UIButton左文字右图片
// 在setTitle之后加入以下这句, 否则iOS8中会重叠 [leftButton layoutIfNeeded]; leftButton.imageEdgeInsets = UIEdgeInsetsMake(14, leftButton.titleLabel.bounds.size.width, 14, -leftButton.titleLabel.bounds原创 2015-12-04 14:09:56 · 469 阅读 · 0 评论
分享