Переглянути джерело

- 설정메뉴에서 휴대폰 번호 변경 수정

TaeHyun 8 роки тому
батько
коміт
cacc42bb8d

+ 9 - 9
OneCable/Base.lproj/Settings.storyboard

@@ -382,10 +382,10 @@
                                                     <action selector="btnSendTouched:" destination="Nm9-wG-Q54" eventType="touchUpInside" id="tQU-sK-SOZ"/>
                                                 </connections>
                                             </button>
-                                            <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="인증번호는 전송 후 3분 동안 유효 합니다." lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="8r4-cT-yl8" customClass="CustomLabel">
-                                                <rect key="frame" x="15" y="223" width="290" height="20"/>
+                                            <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="인증번호는 전송 후 3분 동안 유효 합니다." lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="8r4-cT-yl8" customClass="CustomLabel">
+                                                <rect key="frame" x="15" y="223" width="290" height="40"/>
                                                 <constraints>
-                                                    <constraint firstAttribute="height" constant="20" id="S96-yB-7d5"/>
+                                                    <constraint firstAttribute="height" constant="40" id="S96-yB-7d5"/>
                                                 </constraints>
                                                 <fontDescription key="fontDescription" type="system" pointSize="16"/>
                                                 <color key="textColor" red="0.011764705882352941" green="0.60392156862745094" blue="0.87450980392156863" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
@@ -427,7 +427,7 @@
                                                 </constraints>
                                             </view>
                                             <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="AlU-09-dQo">
-                                                <rect key="frame" x="15" y="302" width="290" height="19"/>
+                                                <rect key="frame" x="15" y="322" width="290" height="19"/>
                                                 <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
                                                 <constraints>
                                                     <constraint firstAttribute="height" constant="19" id="1Nc-Yf-drZ"/>
@@ -441,14 +441,14 @@
                                                 </constraints>
                                             </view>
                                             <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="BSQ-Za-qnY">
-                                                <rect key="frame" x="15" y="243" width="290" height="19"/>
+                                                <rect key="frame" x="15" y="263" width="290" height="19"/>
                                                 <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
                                                 <constraints>
                                                     <constraint firstAttribute="height" constant="19" id="0il-HU-fDB"/>
                                                 </constraints>
                                             </view>
                                             <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="9gf-Nw-nnl" userLabel="View - line">
-                                                <rect key="frame" x="0.0" y="262" width="320" height="1"/>
+                                                <rect key="frame" x="0.0" y="282" width="320" height="1"/>
                                                 <subviews>
                                                     <imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="common_bg_line_01" translatesAutoresizingMaskIntoConstraints="NO" id="Ahd-kb-bqe">
                                                         <rect key="frame" x="0.0" y="0.0" width="320" height="1"/>
@@ -464,14 +464,14 @@
                                                 </constraints>
                                             </view>
                                             <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="gg8-4S-FrP">
-                                                <rect key="frame" x="15" y="263" width="290" height="19"/>
+                                                <rect key="frame" x="15" y="283" width="290" height="19"/>
                                                 <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
                                                 <constraints>
                                                     <constraint firstAttribute="height" constant="19" id="hZh-IC-8hK"/>
                                                 </constraints>
                                             </view>
                                             <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="인증번호 입력" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="miX-qV-7S8">
-                                                <rect key="frame" x="15" y="282" width="290" height="20"/>
+                                                <rect key="frame" x="15" y="302" width="290" height="20"/>
                                                 <constraints>
                                                     <constraint firstAttribute="height" constant="20" id="omZ-k4-zBD"/>
                                                 </constraints>
@@ -480,7 +480,7 @@
                                                 <nil key="highlightedColor"/>
                                             </label>
                                             <textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" minimumFontSize="17" background="img_input_round_bg_default" translatesAutoresizingMaskIntoConstraints="NO" id="L0D-OL-OAB" customClass="CustomTextField">
-                                                <rect key="frame" x="15" y="321" width="290" height="48"/>
+                                                <rect key="frame" x="15" y="341" width="290" height="48"/>
                                                 <constraints>
                                                     <constraint firstAttribute="height" constant="48" id="1MF-t6-Dys"/>
                                                 </constraints>

+ 4 - 0
OneCable/Classes/ViewControllers/SettingsScreens/SettingsNumChangeViewController.m

@@ -34,6 +34,7 @@
     UIView *statusBar = [[[UIApplication sharedApplication] valueForKey:@"statusBarWindow"] valueForKey:@"statusBar"];
     statusBar.backgroundColor = [UIColor whiteColor];
     
+    _lblMessage.hidden = YES;
     _btnSend.enabled = NO;
     _btnConfirm.enabled = NO;
 //    _lblRemainTime.hidden = YES;
@@ -110,10 +111,13 @@
         NSLog(@"requestAuthNum : %@", responseObject);
         
         [_btnSend setTitle: @"인증번호 재전송" forState : UIControlStateNormal];
+        _lblMessage.hidden = NO;
         
     } failure:^(id errorObject) {
         JDErrorModel *error = (JDErrorModel *)errorObject;
         [[JDFacade facade] alert:error.errorMessage];
+        _lblMessage.hidden = NO;
+        _lblMessage.text = error.errorMessage;
     }];
     
 }