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

//
// SettingViewController.swift
// GMERemittance
//
// Created by Sujal on 2/18/18.
// Copyright © 2018 Gobal Money Express Co. Ltd. All rights reserved.
//
import UIKit
class SettingViewController: UIViewController {
struct StringConstants {
let changePasswordText = "change_password_text".localized()
let settingText = "setting_text".localized()
}
@IBOutlet weak var settingLabel: UILabel!
@IBOutlet weak var changePasswordButton: UIButton!
override func viewDidLoad() {
super.viewDidLoad()
self.changePasswordButton.setTitle(StringConstants().changePasswordText, for: UIControlState.normal)
// self.settingLabel.text = Straing
}
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
self.setupNormalNavigation()
self.navigationItem.title = StringConstants().settingText
}
override func viewWillDisappear(_ animated: Bool) {
super.viewWillDisappear(animated)
self.navigationItem.title = ""
}
@IBAction func redirectToChangePassword(_ sender: Any) {
let storyboard = UIStoryboard.init(name: "Profile", bundle: Bundle.main)
if let changePasswordViewController = storyboard.instantiateViewController(withIdentifier: "changePassword") as? ProfileChangePasswordViewController {
self.navigationController!.pushViewController(changePasswordViewController, animated: true)
}
}
}