Browse Source

add KJ Bank Name at Profile

pull/1/head
InKwon James Kim 5 years ago
parent
commit
1b497ef1cf
  1. 16
      GMERemittance/Profile/Profile.storyboard
  2. 2
      GMERemittance/Profile/ProfileViewController.swift

16
GMERemittance/Profile/Profile.storyboard

@ -113,7 +113,7 @@
<nil key="highlightedColor"/> <nil key="highlightedColor"/>
</label> </label>
<view clipsSubviews="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="YgX-nG-MrF"> <view clipsSubviews="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="YgX-nG-MrF">
<rect key="frame" x="10" y="248" width="355" height="109"/>
<rect key="frame" x="10" y="248" width="355" height="130"/>
<subviews> <subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Your Available Balance" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="mmh-uV-sP4"> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Your Available Balance" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="mmh-uV-sP4">
<rect key="frame" x="30" y="18" width="143" height="17"/> <rect key="frame" x="30" y="18" width="143" height="17"/>
@ -190,6 +190,15 @@
<color key="textColor" red="0.92549019610000005" green="0.10980392160000001" blue="0.14117647059999999" alpha="1" colorSpace="calibratedRGB"/> <color key="textColor" red="0.92549019610000005" green="0.10980392160000001" blue="0.14117647059999999" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/> <nil key="highlightedColor"/>
</label> </label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="2Z2-3Z-f4C">
<rect key="frame" x="30" y="98" width="0.0" height="13"/>
<constraints>
<constraint firstAttribute="height" relation="greaterThanOrEqual" constant="13" id="Fsm-2f-UIG"/>
</constraints>
<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"/>
</label>
</subviews> </subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints> <constraints>
@ -197,12 +206,14 @@
<constraint firstItem="mmh-uV-sP4" firstAttribute="leading" secondItem="YgX-nG-MrF" secondAttribute="leading" constant="30" id="ClG-7e-VId"/> <constraint firstItem="mmh-uV-sP4" firstAttribute="leading" secondItem="YgX-nG-MrF" secondAttribute="leading" constant="30" id="ClG-7e-VId"/>
<constraint firstItem="QWE-De-OIo" firstAttribute="leading" secondItem="YgX-nG-MrF" secondAttribute="leading" constant="20" id="H13-ax-XIv"/> <constraint firstItem="QWE-De-OIo" firstAttribute="leading" secondItem="YgX-nG-MrF" secondAttribute="leading" constant="20" id="H13-ax-XIv"/>
<constraint firstItem="QWE-De-OIo" firstAttribute="top" secondItem="EXY-5m-shp" secondAttribute="bottom" constant="8" id="JHc-0s-2mq"/> <constraint firstItem="QWE-De-OIo" firstAttribute="top" secondItem="EXY-5m-shp" secondAttribute="bottom" constant="8" id="JHc-0s-2mq"/>
<constraint firstAttribute="height" constant="109" id="K07-uy-M4b"/>
<constraint firstAttribute="height" constant="130" id="K07-uy-M4b"/>
<constraint firstItem="EXY-5m-shp" firstAttribute="leading" secondItem="MAZ-i9-fR8" secondAttribute="trailing" constant="4" id="X0G-hQ-pkz"/> <constraint firstItem="EXY-5m-shp" firstAttribute="leading" secondItem="MAZ-i9-fR8" secondAttribute="trailing" constant="4" id="X0G-hQ-pkz"/>
<constraint firstAttribute="trailing" secondItem="Upd-kh-obI" secondAttribute="trailing" constant="14" id="XoT-8B-7R2"/> <constraint firstAttribute="trailing" secondItem="Upd-kh-obI" secondAttribute="trailing" constant="14" id="XoT-8B-7R2"/>
<constraint firstItem="MAZ-i9-fR8" firstAttribute="top" secondItem="mmh-uV-sP4" secondAttribute="bottom" constant="2" id="bVD-pq-rIn"/> <constraint firstItem="MAZ-i9-fR8" firstAttribute="top" secondItem="mmh-uV-sP4" secondAttribute="bottom" constant="2" id="bVD-pq-rIn"/>
<constraint firstItem="MAZ-i9-fR8" firstAttribute="leading" secondItem="YgX-nG-MrF" secondAttribute="leading" constant="30" id="dDj-AH-Uoj"/> <constraint firstItem="MAZ-i9-fR8" firstAttribute="leading" secondItem="YgX-nG-MrF" secondAttribute="leading" constant="30" id="dDj-AH-Uoj"/>
<constraint firstItem="2Z2-3Z-f4C" firstAttribute="leading" secondItem="YgX-nG-MrF" secondAttribute="leading" constant="30" id="erD-dl-g6X"/>
<constraint firstItem="mmh-uV-sP4" firstAttribute="top" secondItem="YgX-nG-MrF" secondAttribute="top" constant="18" id="okw-ck-QWv"/> <constraint firstItem="mmh-uV-sP4" firstAttribute="top" secondItem="YgX-nG-MrF" secondAttribute="top" constant="18" id="okw-ck-QWv"/>
<constraint firstItem="2Z2-3Z-f4C" firstAttribute="top" secondItem="QWE-De-OIo" secondAttribute="bottom" constant="8" id="p9x-SG-rmI"/>
<constraint firstItem="Upd-kh-obI" firstAttribute="top" secondItem="YgX-nG-MrF" secondAttribute="top" constant="36" id="uX3-C9-FvR"/> <constraint firstItem="Upd-kh-obI" firstAttribute="top" secondItem="YgX-nG-MrF" secondAttribute="top" constant="36" id="uX3-C9-FvR"/>
<constraint firstItem="QWE-De-OIo" firstAttribute="top" secondItem="MAZ-i9-fR8" secondAttribute="bottom" constant="4" id="vih-of-28I"/> <constraint firstItem="QWE-De-OIo" firstAttribute="top" secondItem="MAZ-i9-fR8" secondAttribute="bottom" constant="4" id="vih-of-28I"/>
</constraints> </constraints>
@ -280,6 +291,7 @@
<tabBarItem key="tabBarItem" title="Profile" image="ic-profile" id="Cg2-T1-GgU"/> <tabBarItem key="tabBarItem" title="Profile" image="ic-profile" id="Cg2-T1-GgU"/>
<connections> <connections>
<outlet property="availableBalancetTitleLabel" destination="mmh-uV-sP4" id="AIG-AU-7sK"/> <outlet property="availableBalancetTitleLabel" destination="mmh-uV-sP4" id="AIG-AU-7sK"/>
<outlet property="bankNameLabel" destination="2Z2-3Z-f4C" id="e2b-Df-w7f"/>
<outlet property="buttonEdit" destination="ycZ-2I-FoZ" id="ReY-SW-6xh"/> <outlet property="buttonEdit" destination="ycZ-2I-FoZ" id="ReY-SW-6xh"/>
<outlet property="changePasswordButton" destination="bv9-cG-fQQ" id="Fgj-kY-iX1"/> <outlet property="changePasswordButton" destination="bv9-cG-fQQ" id="Fgj-kY-iX1"/>
<outlet property="gmeWalletNoTitle" destination="nlo-iP-QwN" id="pJU-bp-Vw9"/> <outlet property="gmeWalletNoTitle" destination="nlo-iP-QwN" id="pJU-bp-Vw9"/>

2
GMERemittance/Profile/ProfileViewController.swift

@ -23,6 +23,7 @@ class ProfileViewController: UIViewController {
@IBOutlet weak var withdrawButton: UIButton! @IBOutlet weak var withdrawButton: UIButton!
@IBOutlet weak var changePasswordButton: UIButton! @IBOutlet weak var changePasswordButton: UIButton!
@IBOutlet weak var bankNameLabel: UILabel!
// titles // titles
@IBOutlet weak var availableBalancetTitleLabel: UILabel! @IBOutlet weak var availableBalancetTitleLabel: UILabel!
@ -86,6 +87,7 @@ class ProfileViewController: UIViewController {
self.labelBalance.text = store.string(forKey: UserKeys.availableBalance) self.labelBalance.text = store.string(forKey: UserKeys.availableBalance)
let walletNum = store.string(forKey: UserKeys.walletNumber) let walletNum = store.string(forKey: UserKeys.walletNumber)
let bankName = store.string(forKey: UserKeys.primaryBankName) let bankName = store.string(forKey: UserKeys.primaryBankName)
bankNameLabel.text = bankName
gmeWalletNumber.text = walletNum gmeWalletNumber.text = walletNum
labelUserProfileName.layer.backgroundColor = UIColor(hex: 0x2e3192).cgColor labelUserProfileName.layer.backgroundColor = UIColor(hex: 0x2e3192).cgColor
labelUserProfileName.layer.cornerRadius = labelUserProfileName.frame.height / 2 labelUserProfileName.layer.cornerRadius = labelUserProfileName.frame.height / 2

Loading…
Cancel
Save