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.
|
|
// // SupportViewController.swift // GMERemittance // // Created by Sujal on 2/10/18. // Copyright © 2018 Gobal Money Express Co. Ltd. All rights reserved. //
import UIKit
class SupportViewController: UIViewController {
var supportIndex: Int! @IBOutlet weak var buttonPhone: UIButton! override func viewDidLoad() { super.viewDidLoad() setUpNavBar(id: 202, title: "") }
override func didReceiveMemoryWarning() { super.didReceiveMemoryWarning() }
override func prepare(for segue: UIStoryboardSegue, sender: Any?) { let messageComposeViewController = segue.destination as! MessageComposeViewController messageComposeViewController.supportIndex = supportIndex } /**
Call to the number */ @IBAction func callSupportCenter(_ sender: Any) { let phoneNumber = buttonPhone.title(for: .normal)! guard let number = URL(string: "tel://" + phoneNumber.removeWhitespacesInBetween()) else { return } UIApplication.shared.openURL(number) } /**
Push view to suggestion request */ @IBAction func sendSuggestion(_ sender: Any) { supportIndex = 2 performSegue(withIdentifier: "sendMessage", sender: nil) } /**
Push view to amendment request */ @IBAction func sendAmendmentRequest(_ sender: Any) { supportIndex = 1 performSegue(withIdentifier: "sendMessage", sender: nil) } /**
Push view to Enquiry request */ @IBAction func sendGeneralEnquiry(_ sender: Any) { supportIndex = 0 performSegue(withIdentifier: "sendMessage", sender: nil) } }
|