12345678910111213141516171819202122232425262728 |
- //
- // HomeTableViewCell.swift
- // xingchuangke
- //
- // Created by Virgil on 2019/3/22.
- // Copyright © 2019 Virgil. All rights reserved.
- //
- import UIKit
- class HomeTableViewCell: UITableViewCell {
- @IBOutlet weak var img: UIImageView!
- @IBOutlet weak var imgHeight: NSLayoutConstraint!
- override func awakeFromNib() {
- super.awakeFromNib()
- imgHeight.constant = ScreenWidth / 796 * 403
- img.setCornerRadius(size: 8)
- // Initialization code
- }
- override func setSelected(_ selected: Bool, animated: Bool) {
- super.setSelected(selected, animated: animated)
- // Configure the view for the selected state
- }
- }
|