Skip to content

expkzb/UIImage-Mask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

UIImage-Mask

The best way to make a square picture into a circular one.

How to use

#import "UIImage+Mask.h"

UIImage *image = [UIImage imageNamed:@"someImage.png"];
UIImage *circleImage = [image circleImage];

Why not use CALayer

You can use CALayer If you only have A view needs to be rendered.
If there are many views (more than 20 maybe),that would be a nightmare :(
The easit way is the best way.Just generate a circular one.

About

The best way to make a square image into circular one.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published