Skip to content

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

Notifications You must be signed in to change notification settings

paulmanwang/WLCCornerRadius

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published