Commit cab196dc5c42ca45b9c326e9ae418de65a477de3
1 parent
71814495
Exists in
newLive
no message
Showing
6 changed files
with
59 additions
and
53 deletions
Show diff stats
YouerLiveVideo/YouerLiveVideo/Info.plist
YouerLiveVideo/YouerLiveVideo/controllers/User/User.storyboard
| ... | ... | @@ -6,6 +6,7 @@ |
| 6 | 6 | <dependencies> |
| 7 | 7 | <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11757"/> |
| 8 | 8 | <capability name="Aspect ratio constraints" minToolsVersion="5.1"/> |
| 9 | + <capability name="Constraints with non-1.0 multipliers" minToolsVersion="5.1"/> | |
| 9 | 10 | <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> |
| 10 | 11 | </dependencies> |
| 11 | 12 | <scenes> |
| ... | ... | @@ -336,7 +337,7 @@ |
| 336 | 337 | </label> |
| 337 | 338 | <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="i2a-hL-oad"> |
| 338 | 339 | <rect key="frame" x="269" y="11" width="90" height="28"/> |
| 339 | - <color key="backgroundColor" red="0.0" green="0.47843137250000001" blue="1" alpha="1" colorSpace="calibratedRGB"/> | |
| 340 | + <color key="backgroundColor" red="0.10980392160000001" green="0.63529411759999999" blue="1" alpha="1" colorSpace="calibratedRGB"/> | |
| 340 | 341 | <constraints> |
| 341 | 342 | <constraint firstAttribute="width" constant="90" id="8cP-zC-Gtl"/> |
| 342 | 343 | </constraints> |
| ... | ... | @@ -466,7 +467,7 @@ |
| 466 | 467 | </constraints> |
| 467 | 468 | </scrollView> |
| 468 | 469 | <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="whH-Oe-owS"> |
| 469 | - <rect key="frame" x="0.0" y="597" width="375" height="70"/> | |
| 470 | + <rect key="frame" x="0.0" y="617" width="375" height="50"/> | |
| 470 | 471 | <subviews> |
| 471 | 472 | <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="kVt-8Z-dIm"> |
| 472 | 473 | <rect key="frame" x="0.0" y="0.0" width="375" height="1"/> |
| ... | ... | @@ -479,11 +480,10 @@ |
| 479 | 480 | <nil key="highlightedColor"/> |
| 480 | 481 | </label> |
| 481 | 482 | <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="a1z-OP-RVi"> |
| 482 | - <rect key="frame" x="50" y="11" width="274" height="48"/> | |
| 483 | - <color key="backgroundColor" red="0.0" green="0.47843137250000001" blue="1" alpha="1" colorSpace="calibratedRGB"/> | |
| 483 | + <rect key="frame" x="62" y="5" width="250" height="40"/> | |
| 484 | + <color key="backgroundColor" red="0.10980392160000001" green="0.63529411759999999" blue="1" alpha="1" colorSpace="calibratedRGB"/> | |
| 484 | 485 | <constraints> |
| 485 | - <constraint firstAttribute="height" constant="48" id="SZf-lH-weB"/> | |
| 486 | - <constraint firstAttribute="width" constant="274" id="cgT-8r-RsB"/> | |
| 486 | + <constraint firstAttribute="height" constant="40" id="Uon-z0-Mgp"/> | |
| 487 | 487 | </constraints> |
| 488 | 488 | <state key="normal" title="确认修改"> |
| 489 | 489 | <color key="titleColor" white="1" alpha="1" colorSpace="calibratedWhite"/> |
| ... | ... | @@ -501,10 +501,11 @@ |
| 501 | 501 | </subviews> |
| 502 | 502 | <color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/> |
| 503 | 503 | <constraints> |
| 504 | - <constraint firstItem="a1z-OP-RVi" firstAttribute="centerX" secondItem="whH-Oe-owS" secondAttribute="centerX" id="XHA-eg-Zww"/> | |
| 505 | - <constraint firstAttribute="height" constant="70" id="ajM-N2-2Sy"/> | |
| 504 | + <constraint firstItem="a1z-OP-RVi" firstAttribute="width" secondItem="whH-Oe-owS" secondAttribute="width" multiplier="2:3" id="Q6B-S9-Yjq"/> | |
| 505 | + <constraint firstAttribute="height" constant="50" id="ajM-N2-2Sy"/> | |
| 506 | 506 | <constraint firstItem="kVt-8Z-dIm" firstAttribute="leading" secondItem="whH-Oe-owS" secondAttribute="leading" id="izd-dc-pm1"/> |
| 507 | - <constraint firstItem="a1z-OP-RVi" firstAttribute="centerY" secondItem="whH-Oe-owS" secondAttribute="centerY" id="vRa-94-ceb"/> | |
| 507 | + <constraint firstItem="a1z-OP-RVi" firstAttribute="centerY" secondItem="whH-Oe-owS" secondAttribute="centerY" id="nue-jK-PT7"/> | |
| 508 | + <constraint firstItem="a1z-OP-RVi" firstAttribute="centerX" secondItem="whH-Oe-owS" secondAttribute="centerX" id="wOI-q2-o0O"/> | |
| 508 | 509 | <constraint firstAttribute="trailing" secondItem="kVt-8Z-dIm" secondAttribute="trailing" id="x84-QB-PR0"/> |
| 509 | 510 | <constraint firstItem="kVt-8Z-dIm" firstAttribute="top" secondItem="whH-Oe-owS" secondAttribute="top" id="zBm-t8-09A"/> |
| 510 | 511 | </constraints> | ... | ... |
YouerLiveVideo/YouerLiveVideo/controllers/User/UserCenter/Login.storyboard
| 1 | -<?xml version="1.0" encoding="UTF-8"?> | |
| 2 | -<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="11762" systemVersion="16A323" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES"> | |
| 1 | +<?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
| 2 | +<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="11762" systemVersion="15G1217" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES"> | |
| 3 | 3 | <device id="retina4_7" orientation="portrait"> |
| 4 | 4 | <adaptation id="fullscreen"/> |
| 5 | 5 | </device> |
| ... | ... | @@ -399,13 +399,13 @@ |
| 399 | 399 | </variation> |
| 400 | 400 | </view> |
| 401 | 401 | <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="xNc-I3-UL6"> |
| 402 | - <rect key="frame" x="0.0" y="64" width="375" height="168"/> | |
| 402 | + <rect key="frame" x="0.0" y="64" width="375" height="150"/> | |
| 403 | 403 | <subviews> |
| 404 | 404 | <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="1Cp-hz-9O4"> |
| 405 | - <rect key="frame" x="0.0" y="0.0" width="375" height="56"/> | |
| 405 | + <rect key="frame" x="0.0" y="0.0" width="375" height="50"/> | |
| 406 | 406 | <subviews> |
| 407 | 407 | <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="o5G-fF-wVL"> |
| 408 | - <rect key="frame" x="0.0" y="55" width="375" height="1"/> | |
| 408 | + <rect key="frame" x="0.0" y="49" width="375" height="1"/> | |
| 409 | 409 | <color key="backgroundColor" red="0.94117647059999998" green="0.93725490199999995" blue="0.96078431369999995" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> |
| 410 | 410 | <constraints> |
| 411 | 411 | <constraint firstAttribute="height" constant="1" id="lXH-lx-MSn"/> |
| ... | ... | @@ -415,7 +415,7 @@ |
| 415 | 415 | <nil key="highlightedColor"/> |
| 416 | 416 | </label> |
| 417 | 417 | <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="昵称" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="O8o-oN-LAH"> |
| 418 | - <rect key="frame" x="8" y="19" width="73" height="18"/> | |
| 418 | + <rect key="frame" x="8" y="16" width="73" height="18"/> | |
| 419 | 419 | <constraints> |
| 420 | 420 | <constraint firstAttribute="width" constant="73" id="bAz-Uv-bTd"/> |
| 421 | 421 | </constraints> |
| ... | ... | @@ -424,7 +424,7 @@ |
| 424 | 424 | <nil key="highlightedColor"/> |
| 425 | 425 | </label> |
| 426 | 426 | <textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="请输入昵称 " minimumFontSize="17" clearButtonMode="whileEditing" translatesAutoresizingMaskIntoConstraints="NO" id="q7i-9n-2oP"> |
| 427 | - <rect key="frame" x="89" y="18.5" width="278" height="19"/> | |
| 427 | + <rect key="frame" x="89" y="15.5" width="278" height="19"/> | |
| 428 | 428 | <fontDescription key="fontDescription" type="system" pointSize="15"/> |
| 429 | 429 | <textInputTraits key="textInputTraits" returnKeyType="done"/> |
| 430 | 430 | <connections> |
| ... | ... | @@ -434,9 +434,8 @@ |
| 434 | 434 | </subviews> |
| 435 | 435 | <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> |
| 436 | 436 | <constraints> |
| 437 | - <constraint firstAttribute="height" relation="greaterThanOrEqual" constant="56" id="Ctl-Pt-CPh"/> | |
| 438 | 437 | <constraint firstItem="o5G-fF-wVL" firstAttribute="leading" secondItem="1Cp-hz-9O4" secondAttribute="leading" id="RLm-KI-JX6"/> |
| 439 | - <constraint firstAttribute="height" constant="56" id="UfT-BQ-siu"/> | |
| 438 | + <constraint firstAttribute="height" constant="50" id="UfT-BQ-siu"/> | |
| 440 | 439 | <constraint firstItem="O8o-oN-LAH" firstAttribute="leading" secondItem="1Cp-hz-9O4" secondAttribute="leading" constant="8" id="XGD-rw-eCb"/> |
| 441 | 440 | <constraint firstAttribute="trailing" secondItem="q7i-9n-2oP" secondAttribute="trailing" constant="8" id="YdO-o5-5VF"/> |
| 442 | 441 | <constraint firstAttribute="bottom" secondItem="o5G-fF-wVL" secondAttribute="bottom" id="f6j-pG-Rae"/> |
| ... | ... | @@ -447,10 +446,10 @@ |
| 447 | 446 | </constraints> |
| 448 | 447 | </view> |
| 449 | 448 | <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="keu-Ke-SrA"> |
| 450 | - <rect key="frame" x="0.0" y="56" width="375" height="56"/> | |
| 449 | + <rect key="frame" x="0.0" y="50" width="375" height="50"/> | |
| 451 | 450 | <subviews> |
| 452 | 451 | <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Hwy-QV-ob8"> |
| 453 | - <rect key="frame" x="0.0" y="55" width="375" height="1"/> | |
| 452 | + <rect key="frame" x="0.0" y="49" width="375" height="1"/> | |
| 454 | 453 | <color key="backgroundColor" red="0.94117647059999998" green="0.93725490199999995" blue="0.96078431369999995" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> |
| 455 | 454 | <constraints> |
| 456 | 455 | <constraint firstAttribute="height" constant="1" id="1bP-ob-qdI"/> |
| ... | ... | @@ -460,7 +459,7 @@ |
| 460 | 459 | <nil key="highlightedColor"/> |
| 461 | 460 | </label> |
| 462 | 461 | <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="密码" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="xBV-ds-Ub9"> |
| 463 | - <rect key="frame" x="8" y="19" width="73" height="18"/> | |
| 462 | + <rect key="frame" x="8" y="16" width="73" height="18"/> | |
| 464 | 463 | <constraints> |
| 465 | 464 | <constraint firstAttribute="width" constant="73" id="SAa-QZ-uJF"/> |
| 466 | 465 | </constraints> |
| ... | ... | @@ -469,7 +468,7 @@ |
| 469 | 468 | <nil key="highlightedColor"/> |
| 470 | 469 | </label> |
| 471 | 470 | <textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="请输入密码" minimumFontSize="17" clearButtonMode="whileEditing" translatesAutoresizingMaskIntoConstraints="NO" id="i3R-4H-gzp"> |
| 472 | - <rect key="frame" x="89" y="18.5" width="278" height="19"/> | |
| 471 | + <rect key="frame" x="89" y="15.5" width="278" height="19"/> | |
| 473 | 472 | <fontDescription key="fontDescription" type="system" pointSize="15"/> |
| 474 | 473 | <textInputTraits key="textInputTraits" keyboardType="alphabet" returnKeyType="done"/> |
| 475 | 474 | <connections> |
| ... | ... | @@ -484,17 +483,17 @@ |
| 484 | 483 | <constraint firstAttribute="trailing" secondItem="i3R-4H-gzp" secondAttribute="trailing" constant="8" id="XnD-Fb-exn"/> |
| 485 | 484 | <constraint firstAttribute="trailing" secondItem="Hwy-QV-ob8" secondAttribute="trailing" id="cUW-Va-u0h"/> |
| 486 | 485 | <constraint firstItem="i3R-4H-gzp" firstAttribute="leading" secondItem="xBV-ds-Ub9" secondAttribute="trailing" constant="8" id="cZ8-V2-oKV"/> |
| 487 | - <constraint firstAttribute="height" constant="56" id="it2-lJ-vPD"/> | |
| 486 | + <constraint firstAttribute="height" constant="50" id="it2-lJ-vPD"/> | |
| 488 | 487 | <constraint firstItem="i3R-4H-gzp" firstAttribute="centerY" secondItem="keu-Ke-SrA" secondAttribute="centerY" id="j86-kg-M0P"/> |
| 489 | 488 | <constraint firstItem="xBV-ds-Ub9" firstAttribute="centerY" secondItem="keu-Ke-SrA" secondAttribute="centerY" id="lQ9-Xe-gvX"/> |
| 490 | 489 | <constraint firstItem="Hwy-QV-ob8" firstAttribute="leading" secondItem="keu-Ke-SrA" secondAttribute="leading" id="ws3-Zb-SqH"/> |
| 491 | 490 | </constraints> |
| 492 | 491 | </view> |
| 493 | 492 | <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="cnM-5P-fhN"> |
| 494 | - <rect key="frame" x="0.0" y="112" width="375" height="56"/> | |
| 493 | + <rect key="frame" x="0.0" y="100" width="375" height="50"/> | |
| 495 | 494 | <subviews> |
| 496 | 495 | <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="7YJ-fu-e63"> |
| 497 | - <rect key="frame" x="0.0" y="55" width="375" height="1"/> | |
| 496 | + <rect key="frame" x="0.0" y="49" width="375" height="1"/> | |
| 498 | 497 | <color key="backgroundColor" red="0.94117647059999998" green="0.93725490199999995" blue="0.96078431369999995" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> |
| 499 | 498 | <constraints> |
| 500 | 499 | <constraint firstAttribute="height" constant="1" id="Ypb-br-LFg"/> |
| ... | ... | @@ -504,7 +503,7 @@ |
| 504 | 503 | <nil key="highlightedColor"/> |
| 505 | 504 | </label> |
| 506 | 505 | <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="确认密码" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="xtu-Lb-h46"> |
| 507 | - <rect key="frame" x="8" y="19" width="73" height="18"/> | |
| 506 | + <rect key="frame" x="8" y="16" width="73" height="18"/> | |
| 508 | 507 | <constraints> |
| 509 | 508 | <constraint firstAttribute="width" constant="73" id="A5Z-hk-VeN"/> |
| 510 | 509 | </constraints> |
| ... | ... | @@ -513,7 +512,7 @@ |
| 513 | 512 | <nil key="highlightedColor"/> |
| 514 | 513 | </label> |
| 515 | 514 | <textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="请确认密码" minimumFontSize="17" clearButtonMode="whileEditing" translatesAutoresizingMaskIntoConstraints="NO" id="4Ko-iM-kKY"> |
| 516 | - <rect key="frame" x="89" y="18.5" width="278" height="19"/> | |
| 515 | + <rect key="frame" x="89" y="15.5" width="278" height="19"/> | |
| 517 | 516 | <fontDescription key="fontDescription" type="system" pointSize="15"/> |
| 518 | 517 | <textInputTraits key="textInputTraits" keyboardType="alphabet" returnKeyType="done"/> |
| 519 | 518 | <connections> |
| ... | ... | @@ -523,7 +522,6 @@ |
| 523 | 522 | </subviews> |
| 524 | 523 | <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> |
| 525 | 524 | <constraints> |
| 526 | - <constraint firstAttribute="height" relation="greaterThanOrEqual" constant="56" id="48F-9G-Fge"/> | |
| 527 | 525 | <constraint firstAttribute="trailing" secondItem="4Ko-iM-kKY" secondAttribute="trailing" constant="8" id="4fh-zG-9vl"/> |
| 528 | 526 | <constraint firstAttribute="bottom" secondItem="7YJ-fu-e63" secondAttribute="bottom" id="9wD-aU-bMP"/> |
| 529 | 527 | <constraint firstAttribute="trailing" secondItem="7YJ-fu-e63" secondAttribute="trailing" id="EjA-4T-fxE"/> |
| ... | ... | @@ -531,7 +529,7 @@ |
| 531 | 529 | <constraint firstItem="4Ko-iM-kKY" firstAttribute="leading" secondItem="xtu-Lb-h46" secondAttribute="trailing" constant="8" id="aYk-72-GQD"/> |
| 532 | 530 | <constraint firstItem="xtu-Lb-h46" firstAttribute="leading" secondItem="cnM-5P-fhN" secondAttribute="leading" constant="8" id="kbK-3X-65q"/> |
| 533 | 531 | <constraint firstItem="7YJ-fu-e63" firstAttribute="leading" secondItem="cnM-5P-fhN" secondAttribute="leading" id="rhc-YS-Jug"/> |
| 534 | - <constraint firstAttribute="height" constant="56" id="ucM-EP-0Bc"/> | |
| 532 | + <constraint firstAttribute="height" constant="50" id="ucM-EP-0Bc"/> | |
| 535 | 533 | <constraint firstItem="4Ko-iM-kKY" firstAttribute="centerY" secondItem="cnM-5P-fhN" secondAttribute="centerY" id="wja-1l-Xos"/> |
| 536 | 534 | </constraints> |
| 537 | 535 | </view> |
| ... | ... | @@ -541,7 +539,7 @@ |
| 541 | 539 | <constraint firstItem="keu-Ke-SrA" firstAttribute="top" secondItem="1Cp-hz-9O4" secondAttribute="bottom" id="Pee-iB-XUj"/> |
| 542 | 540 | <constraint firstItem="cnM-5P-fhN" firstAttribute="leading" secondItem="xNc-I3-UL6" secondAttribute="leading" id="R9s-jK-AYa"/> |
| 543 | 541 | <constraint firstAttribute="trailing" secondItem="1Cp-hz-9O4" secondAttribute="trailing" id="Rib-CM-97d"/> |
| 544 | - <constraint firstAttribute="height" constant="168" id="SWN-6C-I6R"/> | |
| 542 | + <constraint firstAttribute="height" constant="150" id="SWN-6C-I6R"/> | |
| 545 | 543 | <constraint firstAttribute="trailing" secondItem="cnM-5P-fhN" secondAttribute="trailing" id="U6d-yM-lM8"/> |
| 546 | 544 | <constraint firstItem="1Cp-hz-9O4" firstAttribute="top" secondItem="xNc-I3-UL6" secondAttribute="top" id="elW-dc-FcY"/> |
| 547 | 545 | <constraint firstItem="keu-Ke-SrA" firstAttribute="leading" secondItem="xNc-I3-UL6" secondAttribute="leading" id="gcJ-t2-OJH"/> |
| ... | ... | @@ -552,13 +550,13 @@ |
| 552 | 550 | </constraints> |
| 553 | 551 | </view> |
| 554 | 552 | <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="rSF-LZ-Bnl"> |
| 555 | - <rect key="frame" x="0.0" y="232" width="375" height="112"/> | |
| 553 | + <rect key="frame" x="0.0" y="214" width="375" height="100"/> | |
| 556 | 554 | <subviews> |
| 557 | 555 | <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="vkP-pb-ydp"> |
| 558 | - <rect key="frame" x="0.0" y="0.0" width="375" height="56"/> | |
| 556 | + <rect key="frame" x="0.0" y="0.0" width="375" height="50"/> | |
| 559 | 557 | <subviews> |
| 560 | 558 | <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="MEf-rE-fBh"> |
| 561 | - <rect key="frame" x="0.0" y="55" width="375" height="1"/> | |
| 559 | + <rect key="frame" x="0.0" y="49" width="375" height="1"/> | |
| 562 | 560 | <color key="backgroundColor" red="0.94117647059999998" green="0.93725490199999995" blue="0.96078431369999995" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> |
| 563 | 561 | <constraints> |
| 564 | 562 | <constraint firstAttribute="height" constant="1" id="cle-RJ-6tm"/> |
| ... | ... | @@ -568,7 +566,7 @@ |
| 568 | 566 | <nil key="highlightedColor"/> |
| 569 | 567 | </label> |
| 570 | 568 | <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="+86" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="ae8-Wz-CYH"> |
| 571 | - <rect key="frame" x="8" y="19" width="73" height="18"/> | |
| 569 | + <rect key="frame" x="8" y="16" width="73" height="18"/> | |
| 572 | 570 | <constraints> |
| 573 | 571 | <constraint firstAttribute="width" constant="73" id="gFs-fM-1Vg"/> |
| 574 | 572 | </constraints> |
| ... | ... | @@ -577,7 +575,7 @@ |
| 577 | 575 | <nil key="highlightedColor"/> |
| 578 | 576 | </label> |
| 579 | 577 | <textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="请输入手机号码 " minimumFontSize="17" clearButtonMode="whileEditing" translatesAutoresizingMaskIntoConstraints="NO" id="nVJ-81-bXY"> |
| 580 | - <rect key="frame" x="89" y="19" width="177" height="19"/> | |
| 578 | + <rect key="frame" x="89" y="16" width="180" height="19"/> | |
| 581 | 579 | <fontDescription key="fontDescription" type="system" pointSize="15"/> |
| 582 | 580 | <textInputTraits key="textInputTraits" keyboardType="numberPad" returnKeyType="done"/> |
| 583 | 581 | <connections> |
| ... | ... | @@ -585,11 +583,12 @@ |
| 585 | 583 | </connections> |
| 586 | 584 | </textField> |
| 587 | 585 | <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="hwv-0n-dsf"> |
| 588 | - <rect key="frame" x="274" y="11" width="93" height="34"/> | |
| 586 | + <rect key="frame" x="277" y="11" width="90" height="28"/> | |
| 589 | 587 | <color key="backgroundColor" red="0.10980392160000001" green="0.63529411759999999" blue="1" alpha="1" colorSpace="calibratedRGB"/> |
| 590 | 588 | <constraints> |
| 591 | - <constraint firstAttribute="width" constant="93" id="tn3-0t-fnt"/> | |
| 589 | + <constraint firstAttribute="width" constant="90" id="tn3-0t-fnt"/> | |
| 592 | 590 | </constraints> |
| 591 | + <fontDescription key="fontDescription" type="system" pointSize="13"/> | |
| 593 | 592 | <state key="normal" title="获取验证码"> |
| 594 | 593 | <color key="titleColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> |
| 595 | 594 | </state> |
| ... | ... | @@ -609,7 +608,7 @@ |
| 609 | 608 | <constraint firstItem="MEf-rE-fBh" firstAttribute="leading" secondItem="vkP-pb-ydp" secondAttribute="leading" id="2A5-sj-MgA"/> |
| 610 | 609 | <constraint firstItem="ae8-Wz-CYH" firstAttribute="centerY" secondItem="vkP-pb-ydp" secondAttribute="centerY" id="Dfi-Pp-DOa"/> |
| 611 | 610 | <constraint firstItem="nVJ-81-bXY" firstAttribute="centerY" secondItem="vkP-pb-ydp" secondAttribute="centerY" id="Q9B-BF-wWO"/> |
| 612 | - <constraint firstAttribute="height" constant="56" id="d5e-TR-xj8"/> | |
| 611 | + <constraint firstAttribute="height" constant="50" id="d5e-TR-xj8"/> | |
| 613 | 612 | <constraint firstItem="ae8-Wz-CYH" firstAttribute="leading" secondItem="vkP-pb-ydp" secondAttribute="leading" constant="8" id="fAZ-jT-eye"/> |
| 614 | 613 | <constraint firstAttribute="trailing" secondItem="hwv-0n-dsf" secondAttribute="trailing" constant="8" id="jCe-9b-HiL"/> |
| 615 | 614 | <constraint firstItem="hwv-0n-dsf" firstAttribute="centerY" secondItem="vkP-pb-ydp" secondAttribute="centerY" id="mgL-oA-0oG"/> |
| ... | ... | @@ -620,10 +619,10 @@ |
| 620 | 619 | </constraints> |
| 621 | 620 | </view> |
| 622 | 621 | <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="IlU-p3-aLY"> |
| 623 | - <rect key="frame" x="0.0" y="56" width="375" height="56"/> | |
| 622 | + <rect key="frame" x="0.0" y="50" width="375" height="50"/> | |
| 624 | 623 | <subviews> |
| 625 | 624 | <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="SOB-G4-Kln"> |
| 626 | - <rect key="frame" x="0.0" y="55" width="375" height="1"/> | |
| 625 | + <rect key="frame" x="0.0" y="49" width="375" height="1"/> | |
| 627 | 626 | <color key="backgroundColor" red="0.94117647059999998" green="0.93725490199999995" blue="0.96078431369999995" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> |
| 628 | 627 | <constraints> |
| 629 | 628 | <constraint firstAttribute="height" constant="1" id="3yq-4f-vDW"/> |
| ... | ... | @@ -633,7 +632,7 @@ |
| 633 | 632 | <nil key="highlightedColor"/> |
| 634 | 633 | </label> |
| 635 | 634 | <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="验证码" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="KmI-sz-jsA"> |
| 636 | - <rect key="frame" x="8" y="19" width="73" height="18"/> | |
| 635 | + <rect key="frame" x="8" y="16" width="73" height="18"/> | |
| 637 | 636 | <constraints> |
| 638 | 637 | <constraint firstAttribute="width" constant="73" id="ngh-2s-quJ"/> |
| 639 | 638 | </constraints> |
| ... | ... | @@ -642,7 +641,7 @@ |
| 642 | 641 | <nil key="highlightedColor"/> |
| 643 | 642 | </label> |
| 644 | 643 | <textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="请输入验证码" minimumFontSize="17" clearButtonMode="whileEditing" translatesAutoresizingMaskIntoConstraints="NO" id="GHW-G9-uIT"> |
| 645 | - <rect key="frame" x="89" y="18.5" width="278" height="19"/> | |
| 644 | + <rect key="frame" x="89" y="15.5" width="278" height="19"/> | |
| 646 | 645 | <fontDescription key="fontDescription" type="system" pointSize="15"/> |
| 647 | 646 | <textInputTraits key="textInputTraits" keyboardType="numberPad" returnKeyType="done"/> |
| 648 | 647 | <connections> |
| ... | ... | @@ -655,7 +654,7 @@ |
| 655 | 654 | <constraint firstItem="SOB-G4-Kln" firstAttribute="leading" secondItem="IlU-p3-aLY" secondAttribute="leading" id="Bpm-Op-035"/> |
| 656 | 655 | <constraint firstAttribute="bottom" secondItem="SOB-G4-Kln" secondAttribute="bottom" id="KjW-FI-dyR"/> |
| 657 | 656 | <constraint firstItem="GHW-G9-uIT" firstAttribute="leading" secondItem="KmI-sz-jsA" secondAttribute="trailing" constant="8" id="NWt-4e-GXU"/> |
| 658 | - <constraint firstAttribute="height" constant="56" id="QZA-UG-aso"/> | |
| 657 | + <constraint firstAttribute="height" constant="50" id="QZA-UG-aso"/> | |
| 659 | 658 | <constraint firstItem="GHW-G9-uIT" firstAttribute="centerY" secondItem="IlU-p3-aLY" secondAttribute="centerY" id="SGD-Xp-h5t"/> |
| 660 | 659 | <constraint firstAttribute="trailing" secondItem="SOB-G4-Kln" secondAttribute="trailing" id="ZSY-bN-JsM"/> |
| 661 | 660 | <constraint firstItem="KmI-sz-jsA" firstAttribute="centerY" secondItem="IlU-p3-aLY" secondAttribute="centerY" id="dtC-at-TCi"/> |
| ... | ... | @@ -667,7 +666,7 @@ |
| 667 | 666 | <color key="backgroundColor" red="1" green="0.42445692709999999" blue="0.35047448450000002" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> |
| 668 | 667 | <constraints> |
| 669 | 668 | <constraint firstAttribute="trailing" secondItem="IlU-p3-aLY" secondAttribute="trailing" id="4ga-Jf-7Ee"/> |
| 670 | - <constraint firstAttribute="height" constant="112" id="7NK-ZN-nyz"/> | |
| 669 | + <constraint firstAttribute="height" constant="100" id="7NK-ZN-nyz"/> | |
| 671 | 670 | <constraint firstItem="vkP-pb-ydp" firstAttribute="leading" secondItem="rSF-LZ-Bnl" secondAttribute="leading" id="84d-gX-XI3"/> |
| 672 | 671 | <constraint firstItem="IlU-p3-aLY" firstAttribute="top" secondItem="vkP-pb-ydp" secondAttribute="bottom" id="AEt-bb-mHP"/> |
| 673 | 672 | <constraint firstItem="IlU-p3-aLY" firstAttribute="leading" secondItem="rSF-LZ-Bnl" secondAttribute="leading" id="OBc-tM-vGz"/> |
| ... | ... | @@ -677,7 +676,7 @@ |
| 677 | 676 | </constraints> |
| 678 | 677 | </view> |
| 679 | 678 | <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="R1Y-16-Th7"> |
| 680 | - <rect key="frame" x="62.5" y="444" width="250" height="40"/> | |
| 679 | + <rect key="frame" x="62.5" y="414" width="250" height="40"/> | |
| 681 | 680 | <color key="backgroundColor" red="0.10980392156862745" green="0.63529411764705879" blue="1" alpha="1" colorSpace="calibratedRGB"/> |
| 682 | 681 | <constraints> |
| 683 | 682 | <constraint firstAttribute="height" constant="40" id="Kvn-w3-Juc"/> |
| ... | ... | @@ -697,7 +696,7 @@ |
| 697 | 696 | </connections> |
| 698 | 697 | </button> |
| 699 | 698 | <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="DJH-vy-tj1"> |
| 700 | - <rect key="frame" x="325" y="359" width="35" height="30"/> | |
| 699 | + <rect key="frame" x="325" y="329" width="35" height="30"/> | |
| 701 | 700 | <fontDescription key="fontDescription" type="system" pointSize="15"/> |
| 702 | 701 | <state key="normal" title="登 录"> |
| 703 | 702 | <color key="titleColor" red="0.10980392160000001" green="0.63529411759999999" blue="1" alpha="1" colorSpace="calibratedRGB"/> | ... | ... |
YouerLiveVideo/YouerLiveVideo/controllers/User/UserCenter/NewLoginViewController.swift
| ... | ... | @@ -86,6 +86,8 @@ class NewLoginViewController: UIViewController,UITextFieldDelegate { |
| 86 | 86 | if finish{ |
| 87 | 87 | // self.loadUserInfo() |
| 88 | 88 | SVProgressHUD.dismiss() |
| 89 | + //发出刷新首页通知 | |
| 90 | + NotificationCenter.default.post(name: NSNotification.Name(rawValue: "refreshFirstVC"), object: nil) | |
| 89 | 91 | self.back() |
| 90 | 92 | }else{ |
| 91 | 93 | AppDelegate.instance().window?.makeToast("身份获取失败") |
| ... | ... | @@ -106,7 +108,7 @@ class NewLoginViewController: UIViewController,UITextFieldDelegate { |
| 106 | 108 | } |
| 107 | 109 | } |
| 108 | 110 | func back(){ |
| 109 | - self.navigationController!.dismiss(animated: true, completion: nil) | |
| 111 | + self.navigationController!.popViewController(animated: true) | |
| 110 | 112 | } |
| 111 | 113 | |
| 112 | 114 | func textFieldShouldReturn(_ textField: UITextField) -> Bool { |
| ... | ... | @@ -120,6 +122,7 @@ class NewLoginViewController: UIViewController,UITextFieldDelegate { |
| 120 | 122 | } |
| 121 | 123 | @IBAction func registerAccount(_ sender: UIButton) { |
| 122 | 124 | let vc = UIStoryboard(name: "Login", bundle: nil).instantiateViewController(withIdentifier: "RegisterViewControllerVC") as! RegisterViewController |
| 125 | + vc.title="注册" | |
| 123 | 126 | self.navigationController!.pushViewController(vc, animated: true) |
| 124 | 127 | } |
| 125 | 128 | ... | ... |
YouerLiveVideo/YouerLiveVideo/controllers/User/UserViewController.swift
| ... | ... | @@ -31,6 +31,7 @@ class UserViewController: UIViewController { |
| 31 | 31 | } |
| 32 | 32 | |
| 33 | 33 | func setUserInfor(){ |
| 34 | + historyList.reloadData() | |
| 34 | 35 | userPhoto.layer.cornerRadius = userPhoto.frame.size.height/2 |
| 35 | 36 | userPhoto.layer.masksToBounds = true |
| 36 | 37 | userName.text = user.name() |
| ... | ... | @@ -55,7 +56,7 @@ class UserViewController: UIViewController { |
| 55 | 56 | |
| 56 | 57 | func editBtnClick(){ |
| 57 | 58 | if !user.isOnline(){ |
| 58 | - self.view.makeToast("请先登录") | |
| 59 | + AppDelegate.instance().window?.makeToast("请先登录") | |
| 59 | 60 | return |
| 60 | 61 | } |
| 61 | 62 | let vc = Story.instantiateViewControllerWithIdentifier("AppSettingViewControllerVC", storyName: "User") as! AppSettingViewController |
| ... | ... | @@ -90,9 +91,11 @@ class UserViewController: UIViewController { |
| 90 | 91 | } |
| 91 | 92 | |
| 92 | 93 | extension UserViewController:UITableViewDelegate,UITableViewDataSource{ |
| 93 | - | |
| 94 | - | |
| 95 | 94 | func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { |
| 95 | + if !user.isOnline(){ | |
| 96 | + AppDelegate.instance().window?.makeToast("请先登录") | |
| 97 | + return | |
| 98 | + } | |
| 96 | 99 | let vc = Story.instantiateViewControllerWithIdentifier("HistoryViewControllerVC", storyName: "User") as! HistoryViewController |
| 97 | 100 | vc.type = indexPath.row |
| 98 | 101 | vc.isHistory = indexPath.section | ... | ... |
YouerLiveVideo/YouerLiveVideo/util/account.swift
| ... | ... | @@ -121,8 +121,8 @@ class AccountManager{ |
| 121 | 121 | } |
| 122 | 122 | //发出刷新首页通知 |
| 123 | 123 | NotificationCenter.default.post(name: NSNotification.Name(rawValue: "refreshFirstVC"), object: nil) |
| 124 | - LeadViewController.instance.removeAll() | |
| 125 | - LeadViewController.instance.showLogin() | |
| 124 | +// LeadViewController.instance.removeAll() | |
| 125 | +// LeadViewController.instance.showLogin() | |
| 126 | 126 | } |
| 127 | 127 | func refreshUserInfo(completionHandler:((Bool) -> Void)?){ |
| 128 | 128 | AppDelegate.instance().httpServer.getCurrentInfo { (str, error) -> Void in | ... | ... |