Latest 1.0.1
Homepage https://github.com/XiaoWuTongZhi/WyhCornerRadius
License MIT
Platforms ios 8.0
Frameworks UIKit
Authors

WyhCornerRadius

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

快速设置UIView的圆角和边框,并且在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 :

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

UILabel :

//eg:
    [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": "https://github.com/XiaoWuTongZhi/WyhCornerRadius",
    "license": "MIT",
    "authors": {
        "wyh": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/XiaoWuTongZhi/WyhCornerRadius.git",
        "tag": "1.0.1"
    },
    "source_files": [
        "WyhCornerRadius",
        "WyhCornerRadius/WyhCornerRadius/WyhCornerRadius/*.{h,m}"
    ],
    "frameworks": "UIKit"
}

Pin It on Pinterest

Share This