- 博客(2)
- 资源 (2)
- 收藏
- 关注
转载 iOS UIButton 设置图片不变型 setImage:
[btn.imageView setContentMode:UIViewContentModeScaleAspectFill]; 下面方法自己可以试下, 你就知效果了... typedef NS_ENUM(NSInteger, UIViewContentMode) { UIViewContentModeScaleToFill, UIViewCont
2015-05-27 13:04:54 1373
转载 UIButton 设置圆角 边框颜色 点击回调方法
UIButton *signBtn = [UIButton buttonWithType:UIButtonTypeCustom]; signBtn.frame = CGRectMake(0, 0, 80, 40); [signBtn.layer setMasksToBounds:YES]; [signBtn.layer setCornerRadius:10.0]; //设置矩形四个圆角半径
2015-05-07 17:30:30 465
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人