You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
899 B

6 years ago
  1. //
  2. // PayoutTableViewCell.swift
  3. // GMERemittance
  4. //
  5. // Created by Fm-user on 2/7/18.
  6. // Copyright © 2018 Gobal Money Express Co. Ltd. All rights reserved.
  7. //
  8. import UIKit
  9. class PayoutTableViewCell: UITableViewCell {
  10. @IBOutlet weak var labelPayoutName: UILabel!
  11. @IBOutlet weak var labelPayoutAddress: UILabel!
  12. @IBOutlet weak var buttonPhone: UIButton!
  13. override func awakeFromNib() {
  14. super.awakeFromNib()
  15. // Initialization code
  16. }
  17. @IBAction func initiateCall(_ sender: UIButton) {
  18. guard let number = URL(string: "tel://" + sender.title(for: .normal)!) else {
  19. return
  20. }
  21. UIApplication.shared.openURL(number)
  22. }
  23. override func setSelected(_ selected: Bool, animated: Bool) {
  24. super.setSelected(selected, animated: animated)
  25. // Configure the view for the selected state
  26. }
  27. }