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.

45 lines
1.5 KiB

6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
  1. //
  2. // SettingViewController.swift
  3. // GMERemittance
  4. //
  5. // Created by Sujal on 2/18/18.
  6. // Copyright © 2018 Gobal Money Express Co. Ltd. All rights reserved.
  7. //
  8. import UIKit
  9. class SettingViewController: UIViewController {
  10. struct StringConstants {
  11. let changePasswordText = "change_password_text".localized()
  12. let settingText = "setting_text".localized()
  13. }
  14. @IBOutlet weak var settingLabel: UILabel!
  15. @IBOutlet weak var changePasswordButton: UIButton!
  16. override func viewDidLoad() {
  17. super.viewDidLoad()
  18. self.changePasswordButton.setTitle(StringConstants().changePasswordText, for: UIControlState.normal)
  19. // self.settingLabel.text = Straing
  20. }
  21. override func viewWillAppear(_ animated: Bool) {
  22. super.viewWillAppear(animated)
  23. self.setupNormalNavigation()
  24. self.navigationItem.title = StringConstants().settingText
  25. }
  26. override func viewWillDisappear(_ animated: Bool) {
  27. super.viewWillDisappear(animated)
  28. self.navigationItem.title = ""
  29. }
  30. @IBAction func redirectToChangePassword(_ sender: Any) {
  31. let storyboard = UIStoryboard.init(name: "Profile", bundle: Bundle.main)
  32. if let changePasswordViewController = storyboard.instantiateViewController(withIdentifier: "changePassword") as? ProfileChangePasswordViewController {
  33. self.navigationController!.pushViewController(changePasswordViewController, animated: true)
  34. }
  35. }
  36. }