陈斌彬的技术博客

Stay foolish,stay hungry

iOS一行代码搞定图片圆角

This library provides a category for UIImageView with support for cornerRadius automatically

一行代码搞定图片圆角

For more details please click here

How To Use

1
imageview.aliCornerRadius = 5.0f;

Note

make sure

1
imageview.layer.masksToBounds = NO

Installation with CocoaPods

CocoaPods is a dependency manager for Objective-C, which automates and simplifies the process of using 3rd-party libraries in your projects. See the Get Started section for more details.

Podfile

1
pod 'HJCornerRadius', :git => "https://github.com/panghaijiao/HJCornerRadius.git"

License:

HJCornerRadius is released under the MIT license. See LICENSE for details.