mcl*_*lin 10
将它的buttonType设置为UIButtonTypeCustom,这样它就不会绘制圆角矩形,然后为UIButton的图层添加边框:
//you need this import
#import <QuartzCore/QuartzCore.h>
[button.layer setBorderColor: [[UIColor blackColor] CGColor]];
[button.layer setBorderWidth: 2.0];
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3603 次 |
| 最近记录: |