GroupIconView 头像 聊天组头像
you can set your group icon more simple by FDGroupIconView.
pod 'FDGroupIconView'
to your Podfile.pod install
or pod update
.This library requires iOS 6.0+
and Xcode 7.0+
.
See Demo/FDGroupIconViewDemo.xcodeproj
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];
FDGroupIconView is provided under the MIT license. See LICENSE file for details.