Browse Source

wallet number added in profile

pull/1/head
gme_2 6 years ago
parent
commit
ba85fe5a5f
  1. 34
      GMERemittance/Profile/Profile.storyboard
  2. 2
      GMERemittance/Profile/ProfileViewController.swift

34
GMERemittance/Profile/Profile.storyboard

@ -1,11 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="14113" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="ift-aL-bsv">
<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="ift-aL-bsv">
<device id="retina4_7" orientation="portrait">
<adaptation id="fullscreen"/>
</device>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14088"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14283.14"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
@ -27,7 +27,7 @@
<!--Profile-->
<scene sceneID="d42-Q8-kmE">
<objects>
<viewController storyboardIdentifier="ProfileViewController" id="ift-aL-bsv" customClass="ProfileViewController" customModule="GMERemittance" customModuleProvider="target" sceneMemberID="viewController">
<viewController storyboardIdentifier="ProfileViewController" id="ift-aL-bsv" customClass="ProfileViewController" customModule="GME_Remit" customModuleProvider="target" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="Ead-ne-CIv">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
@ -69,14 +69,14 @@
<nil key="highlightedColor"/>
</label>
<imageView hidden="YES" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="l9d-Jg-bOV">
<rect key="frame" x="152" y="33" width="70" height="70"/>
<rect key="frame" x="152.5" y="33" width="70" height="70"/>
<constraints>
<constraint firstAttribute="width" constant="70" id="OZb-4u-H0A"/>
<constraint firstAttribute="height" constant="70" id="byc-YA-EfS"/>
</constraints>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="a9d-Ej-Ijh">
<rect key="frame" x="152" y="33" width="70" height="70"/>
<rect key="frame" x="152.5" y="33" width="70" height="70"/>
<constraints>
<constraint firstAttribute="height" constant="70" id="dLv-8O-aW0"/>
<constraint firstAttribute="width" constant="70" id="sGm-p5-t1c"/>
@ -86,7 +86,7 @@
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="hfP-aZ-zbf" userLabel="Camera">
<rect key="frame" x="204" y="87" width="16" height="16"/>
<rect key="frame" x="204.5" y="87" width="16" height="16"/>
<constraints>
<constraint firstAttribute="height" constant="16" id="Q5Z-vM-fgo"/>
</constraints>
@ -154,7 +154,7 @@
<rect key="frame" x="20" y="69" width="315" height="21"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="GME Wallet No." textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="nlo-iP-QwN">
<rect key="frame" x="10" y="2" width="295" height="17"/>
<rect key="frame" x="10" y="2" width="95.5" height="17"/>
<constraints>
<constraint firstAttribute="height" relation="greaterThanOrEqual" constant="13" id="Vul-Ou-98m"/>
</constraints>
@ -162,11 +162,21 @@
<color key="textColor" red="0.2901960784" green="0.2901960784" blue="0.2901960784" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="GME Wallet No." textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="hkj-cL-iCj">
<rect key="frame" x="109" y="2" width="95.5" height="17"/>
<constraints>
<constraint firstAttribute="height" relation="greaterThanOrEqual" constant="13" id="dAY-tV-MW7"/>
</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>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="nlo-iP-QwN" firstAttribute="leading" secondItem="QWE-De-OIo" secondAttribute="leading" constant="10" id="SeR-Ql-czs"/>
<constraint firstAttribute="trailing" secondItem="nlo-iP-QwN" secondAttribute="trailing" constant="10" id="eak-xN-SV7"/>
<constraint firstItem="hkj-cL-iCj" firstAttribute="centerY" secondItem="nlo-iP-QwN" secondAttribute="centerY" id="g71-G2-2bY"/>
<constraint firstItem="hkj-cL-iCj" firstAttribute="leading" secondItem="nlo-iP-QwN" secondAttribute="trailing" constant="3.5" id="uFn-7i-FwD"/>
<constraint firstItem="nlo-iP-QwN" firstAttribute="top" secondItem="QWE-De-OIo" secondAttribute="top" constant="2" id="vJG-Ya-AqY"/>
<constraint firstAttribute="height" constant="21" id="vNj-ju-38U"/>
</constraints>
@ -274,7 +284,7 @@
</tabBarItem>
<connections>
<outlet property="buttonEdit" destination="ycZ-2I-FoZ" id="ReY-SW-6xh"/>
<outlet property="gmeWalletNumber" destination="nlo-iP-QwN" id="HMk-go-iXs"/>
<outlet property="gmeWalletNumber" destination="hkj-cL-iCj" id="Njh-9e-wtm"/>
<outlet property="imageViewUserProfile" destination="l9d-Jg-bOV" id="Rj5-3p-CuW"/>
<outlet property="labelBalance" destination="MAZ-i9-fR8" id="8sX-5Y-KwP"/>
<outlet property="labelEmail" destination="LJ0-rG-zkE" id="7VD-Vc-Rj5"/>
@ -303,7 +313,7 @@
<!--Profile Change Password View Controller-->
<scene sceneID="rlZ-v6-9ba">
<objects>
<viewController storyboardIdentifier="changePassword" id="4vv-1X-cU7" customClass="ProfileChangePasswordViewController" customModule="GMERemittance" customModuleProvider="target" sceneMemberID="viewController">
<viewController storyboardIdentifier="changePassword" id="4vv-1X-cU7" customClass="ProfileChangePasswordViewController" customModule="GME_Remit" customModuleProvider="target" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="7Pk-Ju-HzD" customClass="ProfileCh">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
@ -516,7 +526,7 @@
<!--Withdraw View Controller-->
<scene sceneID="TNk-Nb-bPc">
<objects>
<viewController storyboardIdentifier="withdraw" id="Z18-bb-Vml" customClass="WithdrawViewController" customModule="GMERemittance" customModuleProvider="target" sceneMemberID="viewController">
<viewController storyboardIdentifier="withdraw" id="Z18-bb-Vml" customClass="WithdrawViewController" customModule="GME_Remit" customModuleProvider="target" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="1Ft-3I-BCr">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
@ -563,7 +573,7 @@
</userDefinedRuntimeAttributes>
</textView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Note: 1000 KRW will be charged for per request." textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="BXg-eg-tI4">
<rect key="frame" x="46.5" y="286" width="283" height="17"/>
<rect key="frame" x="46" y="286" width="283" height="17"/>
<constraints>
<constraint firstAttribute="height" relation="greaterThanOrEqual" constant="16" id="3oQ-JO-qXk"/>
</constraints>

2
GMERemittance/Profile/ProfileViewController.swift

@ -40,7 +40,7 @@ class ProfileViewController: UIViewController {
self.labelBalance.text = store.string(forKey: UserKeys.availableBalance)
let walletNum = store.string(forKey: UserKeys.walletNumber)
let bankName = store.string(forKey: UserKeys.primaryBankName)
gmeWalletNumber.text = walletNum
labelUserProfileName.layer.backgroundColor = UIColor(hex: 0x2e3192).cgColor
labelUserProfileName.layer.cornerRadius = labelUserProfileName.frame.height / 2
labelUserProfileName.text = labelUserName?.text?.prefix(1).uppercased()

Loading…
Cancel
Save