Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 668 Bytes

README.md

File metadata and controls

18 lines (12 loc) · 668 Bytes

WLCCornerRadius

A very simple but high performance way to set corner for UIImageView.

CocoaPods:

pod 'WLCCornerRadius', '~> 1.0'

Simple code:

#import "UIImageView+WLCCornerRadius.h"

......

UIImageView *headerImageView = [[UIImageView alloc] initWithFrame:CGRectMake(10, 10, 40, 40)];  
[headerImageView wlc_setCornerRadius:20.f cornerType:UIRectCornerAllCorners];  
[headerImageView wlc_setBorderWidth:2.f borderColor:[UIColor redColor]];  
[headerImageView wlc_setImage:[UIImage imageNamed:@"test"]];

The demo result