123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- //
- // MyAddressTableViewCell.swift
- // xingchuangke
- //
- // Created by machaochao on 2020/10/17.
- // Copyright © 2020 Virgil. All rights reserved.
- //
- import UIKit
- class MyAddressTableViewCell: UITableViewCell {
- @IBOutlet weak var nameLabel: UILabel!
- @IBOutlet weak var addressLabel: UITextView!
- @IBOutlet weak var setBtn: UIButton!
- @IBOutlet weak var phoneLabel: UILabel!
- @IBOutlet weak var changeBtn: UIButton!
- @IBOutlet weak var delectBtn: UIButton!
- var viewContent: UIView!
- override func awakeFromNib() {
- super.awakeFromNib()
- self.setSizeWidth(width: ScreenWidth)
- // Initialization code
- }
- func loadDataWith(dic: NSDictionary) {
- nameLabel.text = (dic["link_name"]as!String)
- phoneLabel.text = (dic["link_phone"]as!String)
- addressLabel.text = "\(dic["province_name"]as!String)\(dic["city_name"]as!String)\(dic["area_name"]as!String)\(dic["address"]as!String)"
- if (dic["is_default"]as!String) == "1"{
- setBtn.setImage(name: "FriendsSendsPicturesSelectBigYIcon")
- } else {
- setBtn.setImage(name: "FriendsSendsPicturesSelectBigNIcon")
- }
- }
- override func setSelected(_ selected: Bool, animated: Bool) {
- super.setSelected(selected, animated: animated)
- // Configure the view for the selected state
- }
- }
|