// // PickerGroupTableViewCell.m // DKAssetsPickerDemo // // #import "DKPhotoPickerGroupTableViewCell.h" #import "DKPhotoPickerGroup.h" #import @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