Skip to content

Commit

Permalink
[#12] Fix: 테이블뷰 셀 xib에서 스택뷰를 사용하여 오토레이아웃 정상적으로 작동
Browse files Browse the repository at this point in the history
  • Loading branch information
zekexros committed May 6, 2021
1 parent 6d767b9 commit e7eb995
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions iOS/baseball/baseball/GameStoryTableViewCell.xib
Original file line number Diff line number Diff line change
Expand Up @@ -11,31 +11,35 @@
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" reuseIdentifier="GameCell" rowHeight="70" id="KGk-i7-Jjw" customClass="GameStoryTableViewCell" customModule="baseball" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="320" height="70"/>
<rect key="frame" x="0.0" y="0.0" width="414" height="70"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="KGk-i7-Jjw" id="H2p-sc-9uM" customClass="GameStoryTableViewCell" customModule="baseball" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="320" height="70"/>
<rect key="frame" x="0.0" y="0.0" width="414" height="70"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<stackView opaque="NO" contentMode="scaleToFill" alignment="center" spacing="137" translatesAutoresizingMaskIntoConstraints="NO" id="asr-zI-4SY">
<rect key="frame" x="0.0" y="0.0" width="320" height="70"/>
<stackView opaque="NO" contentMode="scaleToFill" distribution="fillProportionally" alignment="center" spacing="137" translatesAutoresizingMaskIntoConstraints="NO" id="asr-zI-4SY">
<rect key="frame" x="0.0" y="0.0" width="414" height="70"/>
<subviews>
<stackView opaque="NO" contentMode="scaleToFill" distribution="fillProportionally" spacing="8" translatesAutoresizingMaskIntoConstraints="NO" id="IDy-aK-SK7">
<rect key="frame" x="0.0" y="10" width="99.5" height="50"/>
<rect key="frame" x="0.0" y="15" width="127.5" height="40"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="3PG-ca-ECC">
<rect key="frame" x="0.0" y="0.0" width="50" height="50"/>
<rect key="frame" x="0.0" y="0.0" width="40" height="40"/>
<constraints>
<constraint firstAttribute="width" constant="40" id="OZS-JX-YrV"/>
<constraint firstAttribute="width" secondItem="3PG-ca-ECC" secondAttribute="height" multiplier="1:1" id="k4f-1a-sLI"/>
</constraints>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="oM5-X5-05y">
<rect key="frame" x="58" y="0.0" width="41.5" height="50"/>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="oM5-X5-05y">
<rect key="frame" x="48" y="0.0" width="79.5" height="40"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
</subviews>
</stackView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="T6b-9A-RzM">
<rect key="frame" x="236.5" y="25" width="83.5" height="20.5"/>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="right" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="T6b-9A-RzM">
<rect key="frame" x="264.5" y="25" width="149.5" height="20.5"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
Expand All @@ -56,7 +60,7 @@
<outlet property="countLabel" destination="oM5-X5-05y" id="gr0-Sq-QPF"/>
<outlet property="countNumberLabel" destination="T6b-9A-RzM" id="wpB-PJ-lfI"/>
</connections>
<point key="canvasLocation" x="136.23188405797103" y="65.625"/>
<point key="canvasLocation" x="204.34782608695653" y="65.625"/>
</tableViewCell>
</objects>
</document>

0 comments on commit e7eb995

Please sign in to comment.