https://github.com/panghaijiao/HJCornerRadius
A category for UIImageView with support for cornerRadius automatically
https://github.com/panghaijiao/HJCornerRadius
corner-radius image
Last synced: 6 months ago
JSON representation
A category for UIImageView with support for cornerRadius automatically
- Host: GitHub
- URL: https://github.com/panghaijiao/HJCornerRadius
- Owner: panghaijiao
- Created: 2016-03-07T17:41:02.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-10-29T12:30:15.000Z (almost 6 years ago)
- Last Synced: 2024-11-13T00:32:39.169Z (11 months ago)
- Topics: corner-radius, image
- Language: Objective-C
- Homepage: http://www.olinone.com/?p=484
- Size: 229 KB
- Stars: 464
- Watchers: 5
- Forks: 66
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- Awesome-iOS - HJCornerRadius - A category for UIImageView with support for cornerRadius automatically (UI Components)
README
# HJCornerRadius



This library provides a category for UIImageView with support for cornerRadius automatically
一行代码搞定图片圆角
For more details please click [here](http://www.olinone.com/?p=484)
## How To Use
```
imageview.aliCornerRadius = 5.0f;
```## Note
make sure
```
imageview.layer.masksToBounds = NO
```## Installation with CocoaPods
[CocoaPods](http://cocoapods.org/) 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](http://cocoapods.org/#get_started) section for more details.
## Podfile
```
pod 'HJCornerRadius', :git => 'https://github.com/panghaijiao/HJCornerRadius.git'
```## License:
HJCornerRadius is released under the MIT license. See LICENSE for details.
## Sponsor
