22 lines
431 B
Swift
22 lines
431 B
Swift
|
import UIKit
|
||
|
|
||
|
class FriendCell: UITableViewCell {
|
||
|
|
||
|
@IBOutlet var nameLabel: UILabel!
|
||
|
@IBOutlet var avatarImageView: UIImageView!
|
||
|
|
||
|
override func awakeFromNib() {
|
||
|
super.awakeFromNib()
|
||
|
|
||
|
avatarImageView.clipsToBounds = true
|
||
|
avatarImageView.layer.cornerRadius = avatarImageView.bounds.width / 2
|
||
|
}
|
||
|
|
||
|
override func prepareForReuse() {
|
||
|
super.prepareForReuse()
|
||
|
|
||
|
avatarImageView.image = nil
|
||
|
}
|
||
|
|
||
|
}
|