
控件
FL6666
这个作者很懒,什么都没留下…
展开
-
iOS UILabel指定文字变颜色
示例: 共有100个商品, 数字显示红色 UILabel *testLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 200, 40)]; [self.view addSubview:testLabel]; // 商品个数假设100 NSString *countLength = [NSString stringWithFor原创 2015-11-05 15:43:18 · 898 阅读 · 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 · 429 阅读 · 0 评论