Latest 1.0.1
License MIT
Platforms ios 8.0
Frameworks UIKit


Quick and easy to set UIView’s corner radius and border(include UIImageView、UIButton、UILabel..)without off-screen Rendering problem in GPU.


The rounded corners direction of support :

UIRectCorner ( UIRectCornerTopLeft、UIRectCornerTopRight、UIRectCornerBottomLeft、UIRectCornerBottomRight、UIRectCornerAllCorners )

Example code :

UIImageView :

//First eg:
    [img wyh_autoSetImageCornerRedius:viewWidth/2 ConrnerType:rectCorner Image:[UIImage imageNamed:@"test.jpg"]];

//Second eg:
    UIImageView *imageView = [UIImageView wyh_circleImageView];

UIButton :

    [btn wyh_CornerRadius:viewWidth/2 Image:imageNormal  RectCornerType:UIRectCornerAllCorners BorderColor:[UIColor blueColor] BorderWidth:3 BackgroundColor:nil UIControlState:(UIControlStateNormal)];

UILabel :

    [label wyh_CornerRadius:viewWidth/2 Image:nil RectCornerType:rectCorner BorderColor:[UIColor magentaColor] BorderWidth:2 BackgroundColor:nil];

Contact me

Latest podspec

    "name": "WyhCornerRadius",
    "version": "1.0.1",
    "summary": "Quick and easy to set UIView's corner radius and border without off-screen rendering problem in GPU.",
    "homepage": "",
    "license": "MIT",
    "authors": {
        "wyh": "[email protected]"
    "platforms": {
        "ios": "8.0"
    "source": {
        "git": "",
        "tag": "1.0.1"
    "source_files": [
    "frameworks": "UIKit"

Pin It on Pinterest

Share This