Latest 1.1.2
Homepage https://github.com/AbeiOS/LFYGroupAvatar
License MIT
Platforms ios 7.0
Frameworks UIKit
Authors

Welcome to AbeiOS GitHub Pages

LFYGroupAvatar

LFYGroupAvatar是用来画QQ或者微信头像的帮助类

使用以下方法制作QQ或者微信头像

- (UIImage *)makeGroupHeader:(LFYGroupAvatarModel)aModel
                  headerSize:(CGSize)aSize
                  dataSource:(NSArray *)aDatasource;

调整以下属性,修改布局

1、调整中心点距小头像的距离

  maker.distanceFactor = 3.5 / 80;

2、调整QQ头像的背景颜色

  maker.avatarBackGroundColorQQ = [UIColor redColor];

3、调整头像中间的文字颜色

  maker.textAttributes = @{NSForegroundColorAttributeName:[UIFont systemFontOfSize:2]};;

4、调整根据文字更换颜色的规则

  [maker updateColorRegular:@[@"#333333", @"#555555",...]];

示例图

image

联系我

QQ:2805508788

Latest podspec

{
    "name": "LFYGroupAvatar",
    "version": "1.1.2",
    "summary": "GroupAvatar",
    "description": "This is an avatar of a chat group which is similar to the one in QQ and WeChat.",
    "homepage": "https://github.com/AbeiOS/LFYGroupAvatar",
    "license": "MIT",
    "authors": {
        "abei": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/AbeiOS/LFYGroupAvatar.git",
        "tag": "1.1.2"
    },
    "source_files": "LFYGroupAvatar/*.{h,m}",
    "exclude_files": "Classes/Exclude",
    "frameworks": "UIKit"
}

Pin It on Pinterest

Share This