Latest 0.0.1
Homepage https://github.com/shenlujia/SSRoundedView
License AHA
Platforms ios 7.0, requires ARC
Dependencies SDWebImage
Authors

高效率设置圆角和边框 无离屏渲染

原理

从本地或者网络获取image -> 异步队列生成圆角图片 -> 缓存管理 -> 主线程设置image

代码

self.testView.rounded_settings.imageSize = CGSizeMake(100, 50);
self.testView.rounded_settings.cornerRadius = 25;
self.testView.rounded_settings.borderWidth = 1;
self.testView.rounded_settings.borderColor = [UIColor redColor];
[self.testView rounded_setImageWithName:@"picture"];
self.testView.rounded_settings.imageSize = CGSizeMake(200, 300);
self.testView.rounded_settings.cornerRadius = 10;
self.testView.rounded_settings.borderWidth = 5;
self.testView.rounded_settings.borderColor = [UIColor blueColor];
[self.testView rounded_setImageWithName:name];
[self.testView rounded_setImageWithURL:[NSURL URLWithString:url] completion:nil];

Latest podspec

{
    "name": "SSRoundedView",
    "version": "0.0.1",
    "license": "AHA",
    "summary": "u9ad8u6548u7387u8bbeu7f6eu5706u89d2u548cu8fb9u6846 u65e0u79bbu5c4fu6e32u67d3",
    "homepage": "https://github.com/shenlujia/SSRoundedView",
    "authors": {
        "Stan Chevallier": "[email protected]"
    },
    "source": {
        "git": "https://github.com/shenlujia/SSRoundedView.git",
        "tag": "0.0.1"
    },
    "source_files": "UIView+Rounded/*.{h,m}",
    "requires_arc": true,
    "xcconfig": {
        "CLANG_MODULES_AUTOLINK": "YES"
    },
    "platforms": {
        "ios": "7.0"
    },
    "dependencies": {
        "SDWebImage": []
    }
}

Pin It on Pinterest

Share This