| 123456789101112131415161718192021222324252627282930313233343536 |
- //
- // PickerGroupTableViewCell.m
- // DKAssetsPickerDemo
- //
- //
- #import "DKPhotoPickerGroupTableViewCell.h"
- #import "DKPhotoPickerGroup.h"
- #import <AssetsLibrary/AssetsLibrary.h>
- @interface DKPhotoPickerGroupTableViewCell ()
- @property (weak, nonatomic) IBOutlet UIImageView *groupImageView;
- @property (weak, nonatomic) IBOutlet UILabel *groupNameLabel;
- @property (weak, nonatomic) IBOutlet UILabel *groupPicCountLabel;
- @end
- @implementation DKPhotoPickerGroupTableViewCell
- - (void)setGroup:(DKPhotoPickerGroup *)group{
- _group = group;
-
- self.groupNameLabel.text = group.groupName;
- self.groupImageView.image = group.thumbImage;
- self.groupPicCountLabel.text = [NSString stringWithFormat:@"(%ld)",(long)group.assetsCount];
- }
- + (instancetype) instanceCell{
- return [[[NSBundle mainBundle] loadNibNamed:NSStringFromClass([self class]) owner:nil options:nil] firstObject];
- }
- @end
|