MyAddressTableViewCell.swift 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. //
  2. // MyAddressTableViewCell.swift
  3. // xingchuangke
  4. //
  5. // Created by machaochao on 2020/10/17.
  6. // Copyright © 2020 Virgil. All rights reserved.
  7. //
  8. import UIKit
  9. class MyAddressTableViewCell: UITableViewCell {
  10. @IBOutlet weak var nameLabel: UILabel!
  11. @IBOutlet weak var addressLabel: UITextView!
  12. @IBOutlet weak var setBtn: UIButton!
  13. @IBOutlet weak var phoneLabel: UILabel!
  14. @IBOutlet weak var changeBtn: UIButton!
  15. @IBOutlet weak var delectBtn: UIButton!
  16. var viewContent: UIView!
  17. override func awakeFromNib() {
  18. super.awakeFromNib()
  19. self.setSizeWidth(width: ScreenWidth)
  20. // Initialization code
  21. }
  22. func loadDataWith(dic: NSDictionary) {
  23. nameLabel.text = (dic["link_name"]as!String)
  24. phoneLabel.text = (dic["link_phone"]as!String)
  25. addressLabel.text = "\(dic["province_name"]as!String)\(dic["city_name"]as!String)\(dic["area_name"]as!String)\(dic["address"]as!String)"
  26. if (dic["is_default"]as!String) == "1"{
  27. setBtn.setImage(name: "FriendsSendsPicturesSelectBigYIcon")
  28. } else {
  29. setBtn.setImage(name: "FriendsSendsPicturesSelectBigNIcon")
  30. }
  31. }
  32. override func setSelected(_ selected: Bool, animated: Bool) {
  33. super.setSelected(selected, animated: animated)
  34. // Configure the view for the selected state
  35. }
  36. }