|
//
// GroupCell.swift
// PaiAi
//
// Created by zhengjianfei on 16/4/4.
// Copyright © 2016年 FFIB. All rights reserved.
//
import UIKit
import PaiaiDataKit
import PaiaiUIKit
final class GroupCell: UITableViewCell {
// MARK: Storyboard property
@IBOutlet var groupImageView: UIImageView!
@IBOutlet var groupNameLabel: UILabel!
@IBOutlet var createTimeLabel: UILabel!
@IBOutlet weak var photoNumLabel: UILabel!
// MARK: init interface
func setInfo(_ info: GroupItem) {
groupImageView.setImage(info.group_avatar, placeholder: UIImage(named: "Group\(info.group_default_avatar)"))
groupNameLabel.text = info.group_name
// createTimeLabel.text = info.created_at
photoNumLabel.text = "有\(info.group_photo_num)张照片"
}
}
|