From 213082b703b183b32e279f3de9f79e8aef7e5f87 Mon Sep 17 00:00:00 2001 From: hamed akhlaghi Date: Sat, 3 Aug 2019 13:09:25 +0430 Subject: [PATCH] Settings direction closed #286 --- MobileToken/de.lproj/Localizable.strings | 2 +- MobileToken/en.lproj/Localizable.strings | 2 +- MobileToken/ui/settings/basic/SettingsViewController.swift | 3 +++ .../Base.lproj/AuthenticationTypeTableViewCell.xib | 4 ++-- .../lockscreentime/Base.lproj/LockScreenTimeTableViewCell.xib | 4 ++-- .../view/settings/basic/Base.lproj/Settings.storyboard | 1 + 6 files changed, 10 insertions(+), 6 deletions(-) diff --git a/MobileToken/de.lproj/Localizable.strings b/MobileToken/de.lproj/Localizable.strings index f8946c1..710c7ce 100644 --- a/MobileToken/de.lproj/Localizable.strings +++ b/MobileToken/de.lproj/Localizable.strings @@ -3,7 +3,7 @@ "next" = "Next"; "skip" = "Skip"; "lb_enter_program" = "Enter program"; -"lb_version" = "version"; +"lb_version" = ""; "lb_support" = "support"; // snackbar diff --git a/MobileToken/en.lproj/Localizable.strings b/MobileToken/en.lproj/Localizable.strings index f8946c1..710c7ce 100644 --- a/MobileToken/en.lproj/Localizable.strings +++ b/MobileToken/en.lproj/Localizable.strings @@ -3,7 +3,7 @@ "next" = "Next"; "skip" = "Skip"; "lb_enter_program" = "Enter program"; -"lb_version" = "version"; +"lb_version" = ""; "lb_support" = "support"; // snackbar diff --git a/MobileToken/ui/settings/basic/SettingsViewController.swift b/MobileToken/ui/settings/basic/SettingsViewController.swift index cc0c08a..4bc7780 100644 --- a/MobileToken/ui/settings/basic/SettingsViewController.swift +++ b/MobileToken/ui/settings/basic/SettingsViewController.swift @@ -3,6 +3,7 @@ import UIKit class SettingsViewController: UIViewController,SettingsTableAdapterProtocol,SettingViewProtocol { + @IBOutlet weak var labelversionString: UILabel! @IBOutlet var tableView: UITableView! @IBOutlet var labelVersion: UILabel! var adapter : SettingsTableViewAdapter? @@ -22,8 +23,10 @@ class SettingsViewController: UIViewController,SettingsTableAdapterProtocol,Sett func getVersion() { let version = Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String labelVersion.text = version! + labelversionString.text = R.string.localizable.lb_version() } + func initTableView(settingMediator: SettingMediator) { tableView?.register(UINib(nibName:R.nib.lockScreenTimeTableViewCell.name,bundle: nil),forCellReuseIdentifier:R.reuseIdentifier.reuseLockScreenTimerSettingRow.identifier) tableView?.register(UINib(nibName:R.nib.authenticationTypeTableViewCell.name,bundle: nil),forCellReuseIdentifier:R.reuseIdentifier.reuseAuthenticationTypeSettingRow.identifier) diff --git a/MobileToken/view/nibs/settings/authenticationtype/Base.lproj/AuthenticationTypeTableViewCell.xib b/MobileToken/view/nibs/settings/authenticationtype/Base.lproj/AuthenticationTypeTableViewCell.xib index ffc8a47..0bc9d63 100644 --- a/MobileToken/view/nibs/settings/authenticationtype/Base.lproj/AuthenticationTypeTableViewCell.xib +++ b/MobileToken/view/nibs/settings/authenticationtype/Base.lproj/AuthenticationTypeTableViewCell.xib @@ -28,7 +28,7 @@ - + diff --git a/MobileToken/view/nibs/settings/lockscreentime/Base.lproj/LockScreenTimeTableViewCell.xib b/MobileToken/view/nibs/settings/lockscreentime/Base.lproj/LockScreenTimeTableViewCell.xib index bf44065..80ca7cd 100644 --- a/MobileToken/view/nibs/settings/lockscreentime/Base.lproj/LockScreenTimeTableViewCell.xib +++ b/MobileToken/view/nibs/settings/lockscreentime/Base.lproj/LockScreenTimeTableViewCell.xib @@ -116,7 +116,7 @@