FDGroupIconView 0.2.0

FDGroupIconView 0.2.0

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Aug 2016

Maintained by fandy.



  • By
  • fandylau

     

you can set your group icon more simple by FDGroupIconView.

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)


UIImage *image2 = [UIImage imageNamed:@"two"];

NSURL *url4 = [NSURL URLWithString:@"http://v1.qzone.cc/avatar/201505/18/13/28/55597873bc536742.jpg%21200x200.jpg"];

// you can creat this array by  UIImage  NSURL or NSString(imageName/urlString) 
NSArray *iconArray = @[@"one.png",// imageName
                       image2, // UIImage
                       @"http://v1.qzone.cc/avatar/201506/22/14/08/5587a649427f7478.png%21200x200.jpg", // urlString
                       url4, //  NSURL
                       @"http://v1.qzone.cc/avatar/201506/22/14/08/5587a65d495f9719.png%21200x200.jpg",
                                   ];
FDGroupIconView *icon = [FDGroupIconView groupIconViewWithFrame:CGRectMake(0, 0, 130, 130) iconArray:iconArray];
icon.center = CGPointMake(75,75);
[cell.iconImageView addSubview:icon];

License

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