浏览代码

Remote Browsing Cell: fix runtime exception when setting image while the cell is not visible

Felix Paul Kühne 9 年之前
父节点
当前提交
0c7ffef0c4
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      Apple-TV/VLCRemoteBrowsingTVCell.xib

+ 3 - 1
Apple-TV/VLCRemoteBrowsingTVCell.xib

@@ -7,7 +7,7 @@
     <objects>
         <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
         <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
-        <collectionViewCell opaque="NO" multipleTouchEnabled="YES" contentMode="center" id="Q7n-Zw-Frg" customClass="VLCRemoteBrowsingTVCell">
+        <collectionViewCell opaque="NO" multipleTouchEnabled="YES" contentMode="center" id="Q7n-Zw-Frg" customClass="VLCCloudStorageCollectionViewCell">
             <rect key="frame" x="0.0" y="0.0" width="300" height="300"/>
             <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
             <view key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center">
@@ -29,7 +29,9 @@
                     <imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" horizontalCompressionResistancePriority="500" verticalCompressionResistancePriority="500" placeholderIntrinsicWidth="300" placeholderIntrinsicHeight="169" adjustsImageWhenAncestorFocused="YES" translatesAutoresizingMaskIntoConstraints="NO" id="tHQ-sR-zn4" customClass="VLCNetworkImageView">
                         <rect key="frame" x="0.0" y="35" width="300" height="142"/>
                         <constraints>
+                            <constraint firstAttribute="height" relation="greaterThanOrEqual" constant="100" id="8jq-kh-9sp"/>
                             <constraint firstAttribute="width" secondItem="tHQ-sR-zn4" secondAttribute="height" multiplier="19:9" id="TP3-nW-8dd"/>
+                            <constraint firstAttribute="width" relation="greaterThanOrEqual" constant="100" id="cOP-xr-iS1"/>
                         </constraints>
                         <connections>
                             <outlet property="aspectRatioConstraint" destination="TP3-nW-8dd" id="0SY-4J-iS5"/>