Skip to content

fandyliu/FDGroupIconView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 <FDGroupIconView/FDGroupIconView.h>.

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.