项目作者: FandyLiu

项目描述 :
GroupIconView 头像 聊天组头像
高级语言: Objective-C
项目地址: git://github.com/FandyLiu/FDGroupIconView.git
创建时间: 2016-08-25T07:59:04Z
项目社区:https://github.com/FandyLiu/FDGroupIconView

开源协议:MIT License

下载


FDGroupIconView

==============
Pod License
Pod Version
Pod Platform

you can set your group icon more simple by FDGroupIconView.

CocoaPods Installation

  1. Add pod 'FDGroupIconView' to your Podfile.
  2. Run pod install or pod update.
  3. Import \.

Requirements

This library requires iOS 6.0+ and Xcode 7.0+.

Demo Project

See Demo/FDGroupIconViewDemo.xcodeproj

How To Use

you can creat iconArray by UIImage NSURL or NSString(imageName/urlString)

  1. UIImage *image2 = [UIImage imageNamed:@"two"];
  2. NSURL *url4 = [NSURL URLWithString:@"http://v1.qzone.cc/avatar/201505/18/13/28/55597873bc536742.jpg%21200x200.jpg"];
  3. // you can creat this array by UIImage NSURL or NSString(imageName/urlString)
  4. NSArray *iconArray = @[@"one.png",// imageName
  5. image2, // UIImage
  6. @"http://v1.qzone.cc/avatar/201506/22/14/08/5587a649427f7478.png%21200x200.jpg", // urlString
  7. url4, // NSURL
  8. @"http://v1.qzone.cc/avatar/201506/22/14/08/5587a65d495f9719.png%21200x200.jpg",
  9. ];
  10. FDGroupIconView *icon = [FDGroupIconView groupIconViewWithFrame:CGRectMake(0, 0, 130, 130) iconArray:iconArray];
  11. icon.center = CGPointMake(75,75);
  12. [cell.iconImageView addSubview:icon];

License

FDGroupIconView is provided under the MIT license. See LICENSE file for details.