bsm-project/Friendvatars/FriendCell.swift

22 lines
431 B
Swift
Raw Normal View History

2018-11-19 14:31:37 +01:00
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
}
}