【发布时间】:2014-05-21 09:25:15
【问题描述】:
我想画一个椭圆形的UIImageView。我试着画画,但我找不到答案。我展示了大部分圆形或圆形。
enter link description here
我试试这个,但这是行不通的
#import <QuartzCore/QuartzCore.h>`
CALayer *imageLayer = YourImageview.layer;
[imageLayer setCornerRadius:5];
[imageLayer setBorderWidth:1];
[imageLayer setMasksToBounds:YES];
【问题讨论】:
标签: ios iphone objective-c