You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
717 B
31 lines
717 B
![]()
2 years ago
|
//
|
||
|
// DialPushCell.swift
|
||
|
// HPlusFit
|
||
|
//
|
||
|
// Created by lemo. on 2019/9/14.
|
||
|
// Copyright © 2019 lemo. All rights reserved.
|
||
|
//
|
||
|
|
||
|
import UIKit
|
||
|
import Kingfisher
|
||
|
|
||
|
class DialPushCell: UICollectionViewCell {
|
||
|
|
||
|
@IBOutlet weak var dilaImageView: UIImageView!
|
||
|
@IBOutlet weak var bgView: UIView!
|
||
|
|
||
|
override func awakeFromNib() {
|
||
|
super.awakeFromNib()
|
||
|
// 按比例适配
|
||
|
for subView in subviews {
|
||
|
for constrain in subView.constraints {
|
||
|
constrain.constant = kScaleWidth(constrain.constant)
|
||
|
}
|
||
|
}
|
||
|
dilaImageView.layer.cornerRadius = 14
|
||
|
dilaImageView.layer.masksToBounds = true
|
||
|
bgView.layer.cornerRadius = 14
|
||
|
}
|
||
|
|
||
|
}
|