UIImageView 设置 圆角
2016-01-11 本文已影响56人
Kloar
导入库以及引用头文件:QuartzCore.FrameWork,以及#import;
[cpp] view plaincopy
UIImageView * roundedView = [[UIImageView alloc] initWithImage: [UIImage imageNamed:@"wood.jpg"]];
// Get the Layer of any view
CALayer * l = [roundedView layer];
[l setMasksToBounds:YES];
[l setCornerRadius:10.0];