Latest 0.0.1
Homepage https://github.com/VernonVan/PPRoundedAvatar
License MIT
Platforms ios 7.0
Frameworks UIKit
Authors
PPRoundedAvatar

PPRoundedAvatar——支持异步裁剪的圆角头像控件。

效果演示

主要功能

  • [x] 圆角
  • [x] 异步裁剪
  • [ ] 技术文章

使用

PPRoundedAvatar *avatar = [[PPRoundedAvatar alloc] initWithFrame:CGRectMake(0, 0, 100, 100)];
avatar.avatarImage = [UIImage imageNamed:@"example.png"];       // 头像图片
avatar.borderWidth = 1.0;                                       // 边框宽度
avatar.borderColor = UIColor.blackColor;                        // 边框颜色
avatar.borderHidden = NO;                                       // 显示边框
avatar.imageBackgroundColor = UIColor.grayColor;                // 背景颜色
[self.view addSubview:avatar];

安装

Cocoapods

  1. 在podfile中添加 pod PPRoundedAvatar
  2. 执行 pod install 或者 pod update
  3. 导入头文件 #import "PPRoundedAvatar.h"

手动安装

  1. 下载 PPRoundedAvatar 文件夹内的所有内容

  2. 将目录下的 PPRoundedAvatar 目录添加(拖放)到你的工程中

  3. 导入头文件 #import "PPRoundedAvatar.h"

相关文章

待定

致谢

最后,感谢我的首席私人高级设计师–@又吉君🍻🍻🍻将这个开源控件从工科男的审美中挽救了回来。未来请你多多指教~

from: 你的ruanpapa

Latest podspec

{
    "name": "PPRoundedAvatar",
    "version": "0.0.1",
    "summary": "A high-performance rounded avatar control.",
    "description": "A high-performance rounded avatar control(u9ad8u6027u80fdu7684u5f02u6b65u88c1u526au7684u5706u89d2u5934u50cfu63a7u4ef6).",
    "homepage": "https://github.com/VernonVan/PPRoundedAvatar",
    "license": "MIT",
    "authors": {
        "VernonVan": "[email protected]"
    },
    "social_media_url": "https://vernonvan.github.io/",
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/VernonVan/PPRoundedAvatar.git",
        "tag": "0.0.1"
    },
    "source_files": "PPRoundedAvatar/**/*.{h,m}",
    "frameworks": "UIKit"
}

Pin It on Pinterest

Share This