Selaa lähdekoodia

iOS: Fix cloud login view constraints

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
Soomin Lee 8 vuotta sitten
vanhempi
commit
e18ff3956d
1 muutettua tiedostoa jossa 38 lisäystä ja 29 poistoa
  1. 38 29
      Resources/VLCCloudStorageTableViewController.xib

+ 38 - 29
Resources/VLCCloudStorageTableViewController.xib

@@ -1,9 +1,9 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="10116" systemVersion="15E65" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES">
+<?xml version="1.0" encoding="UTF-8"?>
+<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="12120" systemVersion="16E195" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" colorMatched="YES">
     <dependencies>
         <deployment identifier="iOS"/>
-        <development version="5000" identifier="xcode"/>
-        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="10085"/>
+        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="12088"/>
+        <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
     </dependencies>
     <objects>
         <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="VLCCloudStorageTableViewController">
@@ -17,70 +17,79 @@
         </placeholder>
         <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
         <view contentMode="scaleToFill" restorationIdentifier="CloudStorageTableViewController" id="28">
-            <rect key="frame" x="0.0" y="0.0" width="320" height="568"/>
+            <rect key="frame" x="0.0" y="0.0" width="320" height="480"/>
             <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
             <subviews>
                 <tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" showsHorizontalScrollIndicator="NO" style="plain" separatorStyle="default" rowHeight="44" sectionHeaderHeight="22" sectionFooterHeight="22" translatesAutoresizingMaskIntoConstraints="NO" id="29">
-                    <rect key="frame" x="0.0" y="0.0" width="320" height="568"/>
-                    <color key="backgroundColor" white="0.0" alpha="1" colorSpace="calibratedWhite"/>
+                    <rect key="frame" x="0.0" y="0.0" width="320" height="480"/>
+                    <color key="backgroundColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
                     <connections>
                         <outlet property="dataSource" destination="-1" id="32"/>
                         <outlet property="delegate" destination="-1" id="33"/>
                     </connections>
                 </tableView>
             </subviews>
-            <color key="backgroundColor" white="0.0" alpha="1" colorSpace="calibratedWhite"/>
+            <color key="backgroundColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
             <constraints>
                 <constraint firstItem="29" firstAttribute="leading" secondItem="28" secondAttribute="leading" id="1e5-4s-WL8"/>
                 <constraint firstItem="29" firstAttribute="top" secondItem="28" secondAttribute="top" id="daj-Xu-442"/>
                 <constraint firstAttribute="bottom" secondItem="29" secondAttribute="bottom" id="kB8-XF-Oig"/>
                 <constraint firstAttribute="trailing" secondItem="29" secondAttribute="trailing" id="upi-35-a7a"/>
             </constraints>
-            <simulatedStatusBarMetrics key="simulatedStatusBarMetrics"/>
             <simulatedToolbarMetrics key="simulatedBottomBarMetrics" barStyle="black"/>
-            <simulatedScreenMetrics key="simulatedDestinationMetrics" type="retina4"/>
+            <point key="canvasLocation" x="13" y="-85"/>
         </view>
         <view contentMode="scaleToFill" id="8">
-            <rect key="frame" x="0.0" y="0.0" width="320" height="568"/>
+            <rect key="frame" x="0.0" y="0.0" width="320" height="480"/>
             <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
             <subviews>
-                <view contentMode="scaleToFill" ambiguous="YES" misplaced="YES" translatesAutoresizingMaskIntoConstraints="NO" id="FhN-yS-GbO">
-                    <rect key="frame" x="50" y="172" width="219" height="274"/>
+                <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="FhN-yS-GbO">
+                    <rect key="frame" x="77.5" y="102.5" width="165" height="275"/>
                     <subviews>
-                        <imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" ambiguous="YES" misplaced="YES" image="dropbox-white.png" translatesAutoresizingMaskIntoConstraints="NO" id="9">
-                            <rect key="frame" x="20" y="20" width="179" height="60"/>
-                            <constraints>
-                                <constraint firstAttribute="height" constant="60" id="cHV-tk-NsL"/>
-                                <constraint firstAttribute="width" constant="179" id="rRT-T3-16c"/>
-                            </constraints>
+                        <imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" image="dropbox-white.png" translatesAutoresizingMaskIntoConstraints="NO" id="9">
+                            <rect key="frame" x="20" y="20" width="125" height="42"/>
                         </imageView>
-                        <button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="20" customClass="VLCMenuButton">
-                            <rect key="frame" x="70" y="215" width="81" height="39"/>
+                        <button opaque="NO" contentMode="scaleToFill" verticalCompressionResistancePriority="751" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="wordWrap" translatesAutoresizingMaskIntoConstraints="NO" id="20" customClass="VLCMenuButton">
+                            <rect key="frame" x="61" y="215" width="41" height="40"/>
+                            <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
                             <fontDescription key="fontDescription" type="boldSystem" pointSize="15"/>
                             <state key="normal" title="Login">
-                                <color key="titleColor" red="0.19607843459999999" green="0.30980393290000002" blue="0.52156865600000002" alpha="1" colorSpace="calibratedRGB"/>
-                                <color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/>
+                                <color key="titleColor" red="0.19607843459999999" green="0.30980393290000002" blue="0.52156865600000002" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
+                                <color key="titleShadowColor" red="0.5" green="0.5" blue="0.5" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
                             </state>
                             <state key="highlighted">
-                                <color key="titleColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
+                                <color key="titleColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
                             </state>
                             <connections>
                                 <action selector="loginAction:" destination="-1" eventType="touchUpInside" id="Ny5-mX-HmE"/>
                             </connections>
                         </button>
                     </subviews>
-                    <color key="backgroundColor" red="0.1215686275" green="0.1215686275" blue="0.1215686275" alpha="1" colorSpace="calibratedRGB"/>
+                    <color key="backgroundColor" red="0.1215686275" green="0.1215686275" blue="0.1215686275" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
+                    <constraints>
+                        <constraint firstItem="9" firstAttribute="top" secondItem="FhN-yS-GbO" secondAttribute="top" constant="20" id="3AC-5Z-mit"/>
+                        <constraint firstAttribute="width" constant="165" id="3oj-db-nBo"/>
+                        <constraint firstAttribute="height" constant="275" id="d2r-lP-rPN"/>
+                        <constraint firstItem="9" firstAttribute="leading" secondItem="FhN-yS-GbO" secondAttribute="leading" constant="20" id="eak-Y3-9Vx"/>
+                        <constraint firstAttribute="trailing" secondItem="9" secondAttribute="trailing" constant="20" id="wZ3-RN-6rz"/>
+                    </constraints>
                 </view>
             </subviews>
-            <color key="backgroundColor" red="0.12156862745098039" green="0.12156862745098039" blue="0.12156862745098039" alpha="1" colorSpace="calibratedRGB"/>
+            <color key="backgroundColor" red="0.12156862745098039" green="0.12156862745098039" blue="0.12156862745098039" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
             <constraints>
-                <constraint firstItem="FhN-yS-GbO" firstAttribute="centerY" secondItem="8" secondAttribute="centerY" constant="25" id="m7x-Uc-Mk0"/>
-                <constraint firstItem="FhN-yS-GbO" firstAttribute="centerX" secondItem="8" secondAttribute="centerX" id="xRX-Hp-GdU"/>
+                <constraint firstItem="FhN-yS-GbO" firstAttribute="centerX" secondItem="8" secondAttribute="centerX" id="Y9W-vp-U2a"/>
+                <constraint firstItem="FhN-yS-GbO" firstAttribute="centerY" secondItem="8" secondAttribute="centerY" id="hpO-eO-ELD"/>
             </constraints>
-            <simulatedScreenMetrics key="simulatedDestinationMetrics" type="retina4"/>
+            <nil key="simulatedStatusBarMetrics"/>
+            <point key="canvasLocation" x="13.5" y="-687.5"/>
         </view>
     </objects>
     <resources>
         <image name="dropbox-white.png" width="125" height="42"/>
     </resources>
+    <simulatedMetricsContainer key="defaultSimulatedMetrics">
+        <simulatedStatusBarMetrics key="statusBar"/>
+        <simulatedOrientationMetrics key="orientation"/>
+        <simulatedScreenMetrics key="destination"/>
+    </simulatedMetricsContainer>
 </document>