ShoppingMallTableViewCell.swift 930 B

12345678910111213141516171819202122232425262728293031323334
  1. //
  2. // ShoppingMallTableViewCell.swift
  3. // CommonFrame
  4. //
  5. // Created by Virgil on 2019/4/18.
  6. // Copyright © 2019 Virgil. All rights reserved.
  7. //
  8. import UIKit
  9. class ShoppingMallTableViewCell: UITableViewCell {
  10. @IBOutlet weak var lblMoney: UILabel!
  11. @IBOutlet weak var lblDesc: UILabel!
  12. @IBOutlet weak var lblName: UILabel!
  13. @IBOutlet weak var imgShow: UIImageView!
  14. @IBOutlet weak var viewContent: UIView!
  15. override func awakeFromNib() {
  16. super.awakeFromNib()
  17. // Initialization code
  18. self.setSizeWidth(width: ScreenWidth)
  19. viewContent.setCornerRadius(size: 8)
  20. // let width = (ScreenWidth - 24) * 0.4
  21. // imgShow.setSize(width: width, height: width / 166 * 129)
  22. // viewContent.setSizeHeight(height: imgShow.bottom())
  23. }
  24. override func setSelected(_ selected: Bool, animated: Bool) {
  25. super.setSelected(selected, animated: animated)
  26. }
  27. }