Browse Source

about me managed

pull/1/head
gme_2 6 years ago
parent
commit
ae32eb0441
  1. 9
      GMERemittance/Profile/ProfileViewController.swift
  2. 21
      GMERemittance/SideMenu/AboutGMEViewController.swift
  3. 23
      GMERemittance/_Home/_Home.storyboard

9
GMERemittance/Profile/ProfileViewController.swift

@ -3,9 +3,10 @@
class ProfileViewController: UIViewController {
struct StringConstants {
static let changePasswordText = "Change Password"
static let gmeWalletNotText = "GME Wallet No"
static let yourAvailableBalanceText = "Your Available Balance"
static let changePasswordText = "change_password_text".localized()
static let gmeWalletNotText = "gme_wallet_no_text".localized()
static let yourAvailableBalanceText = "available_balance_text".localized()
static let profileText = "profile_text".localized()
}
@IBOutlet weak var labelUserProfileName: UILabel!
@ -33,7 +34,7 @@ class ProfileViewController: UIViewController {
super.viewWillDisappear(animated)
// self.setupPicturedNavBar()
self.setupNormalNavigation()
self.navigationItem.title = "Profile"
self.navigationItem.title = StringConstants.profileText
self.withdrawButton.isHidden = !Utility.pennyTestVerified()
show()
}

21
GMERemittance/SideMenu/AboutGMEViewController.swift

@ -10,7 +10,20 @@ import UIKit
class AboutGMEViewController: UIViewController {
struct StringConstants {
static let descriptionText = "about_me_description_text".localized()
static let appVersionText = "app_version_text".localized()
static let followText = "follow_us_text".localized()
}
// language
@IBOutlet weak var versionLabel: UILabel!
@IBOutlet weak var descriptionLabel: UILabel!
@IBOutlet weak var followUsTitleText: UILabel!
@IBOutlet weak var versionTitleLabel: UILabel!
let URLFacebookApp: String = "fb://profile/1129818613815224"
let URLFacebookApp2: String = "fb://page/1129818613815224"
let URLFacebookBrowser: String = "https://www.facebook.com/1129818613815224/"
@ -23,6 +36,8 @@ class AboutGMEViewController: UIViewController {
self.versionLabel.text = Utility.getAppVersion()
}
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
self.setupNormalNavigation()
@ -34,6 +49,12 @@ class AboutGMEViewController: UIViewController {
// Dispose of any resources that can be recreated.
}
func configureLanguage() {
self.descriptionLabel.text = StringConstants.descriptionText
self.followUsTitleText.text = StringConstants.followText
self.versionTitleLabel.text = StringConstants.appVersionText
}
@IBAction func checkForUpdate(_ sender: Any) {
}

23
GMERemittance/_Home/_Home.storyboard

@ -1,11 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="14313.18" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="8fJ-Pa-ik8">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="14460.31" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="8fJ-Pa-ik8">
<device id="retina4_7" orientation="portrait">
<adaptation id="fullscreen"/>
</device>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14283.14"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14460.20"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
@ -1708,7 +1708,10 @@
</view>
<navigationItem key="navigationItem" id="xpO-ab-JdT"/>
<connections>
<outlet property="descriptionLabel" destination="yzM-dm-RaX" id="Y6w-jn-WYh"/>
<outlet property="followUsTitleText" destination="gLa-zv-E4X" id="5vq-8C-axz"/>
<outlet property="versionLabel" destination="QUF-Ty-ZUz" id="C55-hL-c8v"/>
<outlet property="versionTitleLabel" destination="hwz-3v-OeA" id="uYF-V3-fiX"/>
</connections>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="Jgz-bf-fkX" userLabel="First Responder" sceneMemberID="firstResponder"/>
@ -1769,7 +1772,7 @@
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="2mins" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="0EH-X8-aNW">
<rect key="frame" x="322.5" y="21" width="32.5" height="17"/>
<rect key="frame" x="321" y="21" width="34" height="17"/>
<constraints>
<constraint firstAttribute="height" constant="17" id="YKo-4d-R2g"/>
</constraints>
@ -1819,7 +1822,7 @@
</state>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="x2Q-k4-CnY">
<rect key="frame" x="44" y="349" width="53" height="13"/>
<rect key="frame" x="44" y="349" width="47" height="13"/>
<constraints>
<constraint firstAttribute="height" constant="13" id="GVA-JU-K08"/>
</constraints>
@ -1829,7 +1832,7 @@
</state>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="KIV-Lo-m2o">
<rect key="frame" x="112" y="347" width="105" height="17"/>
<rect key="frame" x="106" y="347" width="99" height="17"/>
<fontDescription key="fontDescription" name="SanFranciscoDisplay-Regular" family="San Francisco Display" pointSize="14"/>
<state key="normal" title=" 3 Comments" image="ic_comments">
<color key="titleColor" red="0.2901960784" green="0.2901960784" blue="0.2901960784" alpha="1" colorSpace="calibratedRGB"/>
@ -1926,7 +1929,7 @@
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="2mins" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="g9L-nq-IcP">
<rect key="frame" x="322.5" y="12" width="32.5" height="17"/>
<rect key="frame" x="321" y="12" width="34" height="17"/>
<constraints>
<constraint firstAttribute="height" constant="17" id="3kD-XC-Rjr"/>
</constraints>
@ -3415,7 +3418,7 @@
</constraints>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Today, 11:25 AM" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="XzZ-7p-2Gd">
<rect key="frame" x="68" y="13" width="89.5" height="19"/>
<rect key="frame" x="68" y="13" width="84.5" height="19"/>
<constraints>
<constraint firstAttribute="height" constant="19" id="g3P-gp-LOg"/>
</constraints>
@ -3424,7 +3427,7 @@
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Detected a case where " lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Yi6-J6-chu">
<rect key="frame" x="68" y="37" width="148" height="26"/>
<rect key="frame" x="68" y="37" width="147.5" height="26"/>
<fontDescription key="fontDescription" name="SanFranciscoText-Regular" family="San Francisco Text" pointSize="14"/>
<color key="textColor" red="0.2901960784" green="0.2901960784" blue="0.2901960784" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
@ -3741,10 +3744,10 @@
<rect key="frame" x="0.0" y="0.0" width="375" height="142"/>
<subviews>
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="settingsSettingLarge" translatesAutoresizingMaskIntoConstraints="NO" id="zvH-lb-qxi">
<rect key="frame" x="156" y="9" width="63" height="62"/>
<rect key="frame" x="124.5" y="9" width="126" height="124"/>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Settings" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Xmn-Uf-QSg">
<rect key="frame" x="162.5" y="93" width="50.5" height="17"/>
<rect key="frame" x="162.5" y="155" width="50.5" height="17"/>
<fontDescription key="fontDescription" name="SanFranciscoDisplay-Regular" family="San Francisco Display" pointSize="14"/>
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<nil key="highlightedColor"/>

Loading…
Cancel
Save