HomeTableViewCell.swift 672 B

12345678910111213141516171819202122232425262728
  1. //
  2. // HomeTableViewCell.swift
  3. // xingchuangke
  4. //
  5. // Created by Virgil on 2019/3/22.
  6. // Copyright © 2019 Virgil. All rights reserved.
  7. //
  8. import UIKit
  9. class HomeTableViewCell: UITableViewCell {
  10. @IBOutlet weak var img: UIImageView!
  11. @IBOutlet weak var imgHeight: NSLayoutConstraint!
  12. override func awakeFromNib() {
  13. super.awakeFromNib()
  14. imgHeight.constant = ScreenWidth / 796 * 403
  15. img.setCornerRadius(size: 8)
  16. // Initialization code
  17. }
  18. override func setSelected(_ selected: Bool, animated: Bool) {
  19. super.setSelected(selected, animated: animated)
  20. // Configure the view for the selected state
  21. }
  22. }