Quellcode durchsuchen

playlist table cell: deploy auto-layout to enable RTL support

Signed-off-by: Felix Paul Kühne <fkuehne@videolan.org>
Tobias Conradi vor 10 Jahren
Ursprung
Commit
659e1f55e7
1 geänderte Dateien mit 62 neuen und 30 gelöschten Zeilen
  1. 62 30
      Resources/VLCPlaylistTableViewCell.xib

+ 62 - 30
Resources/VLCPlaylistTableViewCell.xib

@@ -1,10 +1,14 @@
 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="7706" systemVersion="14E33b" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none">
+<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="8164.2" systemVersion="15A226f" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES">
     <dependencies>
         <deployment version="1792" identifier="iOS"/>
-        <development version="5000" identifier="xcode"/>
-        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="7703"/>
+        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="8135.1"/>
     </dependencies>
+    <customFonts key="customFonts">
+        <mutableArray key="HelveticaNeueLights.ttc">
+            <string>HelveticaNeue-Light</string>
+        </mutableArray>
+    </customFonts>
     <objects>
         <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
         <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
@@ -12,55 +16,88 @@
             <rect key="frame" x="0.0" y="0.0" width="320" height="90"/>
             <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
             <tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="3" id="pEL-yt-P8r">
-                <rect key="frame" x="0.0" y="0.0" width="320" height="89"/>
+                <rect key="frame" x="0.0" y="0.0" width="320" height="89.5"/>
                 <autoresizingMask key="autoresizingMask"/>
                 <subviews>
-                    <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFill" id="4">
-                        <rect key="frame" x="0.0" y="0.0" width="320" height="91"/>
-                        <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
+                    <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFill" translatesAutoresizingMaskIntoConstraints="NO" id="4">
+                        <rect key="frame" x="0.0" y="0.0" width="320" height="89.5"/>
+                        <animations/>
                         <color key="backgroundColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
                     </imageView>
-                    <imageView hidden="YES" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="top" image="folderIcon.png" id="5iA-hI-rrr">
-                        <rect key="frame" x="0.0" y="35" width="320" height="56"/>
-                        <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
+                    <imageView hidden="YES" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="top" image="folderIcon.png" translatesAutoresizingMaskIntoConstraints="NO" id="5iA-hI-rrr">
+                        <rect key="frame" x="0.0" y="35" width="320" height="54.5"/>
+                        <animations/>
                     </imageView>
-                    <imageView userInteractionEnabled="NO" contentMode="scaleToFill" image="gradient-cell-ios7" id="22">
-                        <rect key="frame" x="0.0" y="0.0" width="320" height="91"/>
-                        <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
+                    <imageView userInteractionEnabled="NO" contentMode="scaleToFill" image="gradient-cell-ios7" translatesAutoresizingMaskIntoConstraints="NO" id="22">
+                        <rect key="frame" x="0.0" y="0.0" width="320" height="89.5"/>
+                        <animations/>
                     </imageView>
-                    <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" text="Title" lineBreakMode="wordWrap" baselineAdjustment="none" minimumScaleFactor="0.5" adjustsLetterSpacingToFitWidth="YES" id="6">
-                        <rect key="frame" x="7" y="47" width="305" height="21"/>
-                        <autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
+                    <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" text="Title" textAlignment="natural" lineBreakMode="wordWrap" baselineAdjustment="none" minimumScaleFactor="0.5" adjustsLetterSpacingToFitWidth="YES" translatesAutoresizingMaskIntoConstraints="NO" id="6">
+                        <rect key="frame" x="8" y="35" width="304" height="24.5"/>
+                        <animations/>
                         <fontDescription key="fontDescription" name="HelveticaNeue-Light" family="Helvetica Neue" pointSize="15"/>
                         <color key="textColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
                         <color key="highlightedColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
                         <size key="shadowOffset" width="0.0" height="0.0"/>
                     </label>
-                    <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" text="New" textAlignment="right" lineBreakMode="wordWrap" baselineAdjustment="none" minimumScaleFactor="0.5" adjustsLetterSpacingToFitWidth="YES" id="sYw-l2-Tmv">
-                        <rect key="frame" x="222" y="62" width="93" height="26"/>
-                        <autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
+                    <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" misplaced="YES" text="New" textAlignment="right" lineBreakMode="wordWrap" baselineAdjustment="none" minimumScaleFactor="0.5" adjustsLetterSpacingToFitWidth="YES" translatesAutoresizingMaskIntoConstraints="NO" id="sYw-l2-Tmv">
+                        <rect key="frame" x="122" y="67" width="190" height="14.5"/>
+                        <animations/>
                         <fontDescription key="fontDescription" type="system" pointSize="12"/>
                         <color key="textColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
                         <color key="highlightedColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
                         <size key="shadowOffset" width="0.0" height="0.0"/>
                     </label>
-                    <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" text="Subtitle — Subtitle" lineBreakMode="wordWrap" baselineAdjustment="alignBaselines" minimumScaleFactor="0.5" id="7">
-                        <rect key="frame" x="7" y="67" width="252" height="15"/>
-                        <autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
+                    <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" text="Subtitle — Subtitle" lineBreakMode="wordWrap" baselineAdjustment="alignBaselines" minimumScaleFactor="0.5" translatesAutoresizingMaskIntoConstraints="NO" id="7">
+                        <rect key="frame" x="8" y="67" width="106" height="14.5"/>
+                        <animations/>
                         <fontDescription key="fontDescription" type="system" pointSize="12"/>
                         <color key="textColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
                         <color key="highlightedColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
                         <size key="shadowOffset" width="0.0" height="0.0"/>
                     </label>
-                    <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Meta Data" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="3xi-uj-aAV">
-                        <rect key="frame" x="7" y="8" width="305" height="41"/>
-                        <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
+                    <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Meta Data" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="3xi-uj-aAV">
+                        <rect key="frame" x="8" y="8" width="304" height="27"/>
+                        <animations/>
                         <fontDescription key="fontDescription" type="system" pointSize="12"/>
                         <color key="textColor" cocoaTouchSystemColor="lightTextColor"/>
                         <nil key="highlightedColor"/>
                     </label>
                 </subviews>
+                <animations/>
+                <constraints>
+                    <constraint firstItem="5iA-hI-rrr" firstAttribute="top" secondItem="pEL-yt-P8r" secondAttribute="top" constant="35" id="0e6-eB-gIO"/>
+                    <constraint firstItem="sYw-l2-Tmv" firstAttribute="height" secondItem="7" secondAttribute="height" id="1N5-73-wMe"/>
+                    <constraint firstAttribute="trailing" secondItem="22" secondAttribute="trailing" id="1Zz-cK-59T"/>
+                    <constraint firstItem="6" firstAttribute="leading" secondItem="pEL-yt-P8r" secondAttribute="leading" constant="8" id="B58-rD-stL"/>
+                    <constraint firstItem="4" firstAttribute="leading" secondItem="pEL-yt-P8r" secondAttribute="leading" id="BWt-6F-Z6H"/>
+                    <constraint firstItem="7" firstAttribute="top" secondItem="6" secondAttribute="bottom" constant="8" id="FDZ-lE-uBQ"/>
+                    <constraint firstItem="3xi-uj-aAV" firstAttribute="top" secondItem="pEL-yt-P8r" secondAttribute="top" constant="8" id="G7M-XR-ut3"/>
+                    <constraint firstAttribute="bottom" secondItem="22" secondAttribute="bottom" id="JC6-Q6-E9V"/>
+                    <constraint firstItem="6" firstAttribute="top" secondItem="3xi-uj-aAV" secondAttribute="bottom" id="Kas-PX-vm8"/>
+                    <constraint firstAttribute="bottom" secondItem="sYw-l2-Tmv" secondAttribute="bottom" constant="8" id="MpI-5C-JLG"/>
+                    <constraint firstAttribute="trailing" secondItem="5iA-hI-rrr" secondAttribute="trailing" id="PfR-Cm-d7h"/>
+                    <constraint firstAttribute="trailing" secondItem="4" secondAttribute="trailing" id="Q12-b6-BKB"/>
+                    <constraint firstAttribute="bottom" secondItem="5iA-hI-rrr" secondAttribute="bottom" id="Thz-vE-rDq"/>
+                    <constraint firstAttribute="bottom" secondItem="7" secondAttribute="bottom" constant="8" id="V2A-54-5Em"/>
+                    <constraint firstItem="22" firstAttribute="top" secondItem="pEL-yt-P8r" secondAttribute="top" id="VLS-dT-bzc"/>
+                    <constraint firstItem="5iA-hI-rrr" firstAttribute="leading" secondItem="pEL-yt-P8r" secondAttribute="leading" id="VNu-Ix-mHw"/>
+                    <constraint firstItem="3xi-uj-aAV" firstAttribute="leading" secondItem="pEL-yt-P8r" secondAttribute="leading" constant="8" id="VUx-h5-ae7"/>
+                    <constraint firstItem="sYw-l2-Tmv" firstAttribute="leading" relation="greaterThanOrEqual" secondItem="7" secondAttribute="trailing" constant="8" id="Wb4-Pv-BIS"/>
+                    <constraint firstItem="22" firstAttribute="leading" secondItem="pEL-yt-P8r" secondAttribute="leading" id="XbD-ch-L0p"/>
+                    <constraint firstAttribute="trailing" secondItem="sYw-l2-Tmv" secondAttribute="trailing" constant="8" id="Zcw-z4-u4F"/>
+                    <constraint firstAttribute="bottom" secondItem="22" secondAttribute="bottom" id="b0j-Zr-f4n"/>
+                    <constraint firstItem="22" firstAttribute="leading" secondItem="pEL-yt-P8r" secondAttribute="leading" id="bM8-Zl-piv"/>
+                    <constraint firstItem="7" firstAttribute="leading" secondItem="pEL-yt-P8r" secondAttribute="leading" constant="8" id="faR-g7-XYt"/>
+                    <constraint firstAttribute="bottom" secondItem="4" secondAttribute="bottom" id="izG-dY-vNl"/>
+                    <constraint firstItem="4" firstAttribute="top" secondItem="pEL-yt-P8r" secondAttribute="top" id="j8t-Ng-xOy"/>
+                    <constraint firstAttribute="trailing" secondItem="6" secondAttribute="trailing" constant="8" id="l9j-Qq-3QE"/>
+                    <constraint firstAttribute="trailing" secondItem="22" secondAttribute="trailing" id="lvH-eY-9Xa"/>
+                    <constraint firstItem="6" firstAttribute="top" secondItem="5iA-hI-rrr" secondAttribute="top" id="pQD-DM-a5q"/>
+                    <constraint firstAttribute="trailing" secondItem="3xi-uj-aAV" secondAttribute="trailing" constant="8" id="ri1-Fw-8xM"/>
+                </constraints>
             </tableViewCellContentView>
+            <animations/>
             <color key="backgroundColor" white="0.12" alpha="1" colorSpace="calibratedWhite"/>
             <connections>
                 <outlet property="folderIconView" destination="5iA-hI-rrr" id="K2w-2u-dEl"/>
@@ -76,9 +113,4 @@
         <image name="folderIcon.png" width="120" height="112"/>
         <image name="gradient-cell-ios7" width="2" height="92"/>
     </resources>
-    <simulatedMetricsContainer key="defaultSimulatedMetrics">
-        <simulatedStatusBarMetrics key="statusBar"/>
-        <simulatedOrientationMetrics key="orientation"/>
-        <simulatedScreenMetrics key="destination" type="retina4"/>
-    </simulatedMetricsContainer>
 </document>