为什么我的笔尖尺寸在未经我许可的情况下不断改变?

时间:2016-05-13 06:36:33

标签: autolayout interface-builder xcode7 ios-autolayout

每次运行应用程序时,我的nib文件似乎都会自行更新。

通常差异是尺寸变化1px或0.5px。

e.g。

<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
<variation key="heightClass=regular-widthClass=compact" misplaced="YES">
-                                                <rect key="frame" x="18" y="49" width="89" height="12.5"/>
+                                                <rect key="frame" x="18" y="49" width="89" height="12"/>
</variation>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="ABCD1234" textAlignment="right" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="eb0-K9-hzy">
@@ -4813,7 +4813,7 @@ Share with friends</string>
<rect key="frame" x="0.0" y="0.0" width="240" height="128"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<variation key="heightClass=regular-widthClass=compact" misplaced="YES">
-                                            <rect key="frame" x="50" y="34" width="300" height="50.5"/>
+                                            <rect key="frame" x="50" y="34" width="300" height="51"/>
</variation>
</view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="TWEET" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="VdA-A5-lp1">
@@ -6283,7 +6283,7 @@ Share with friends</string>
</mask>
</variation>
<variation key="heightClass=regular-widthClass=compact" misplaced="YES">
-                                    <rect key="frame" x="20" y="159" width="139" height="1"/>
+                                    <rect key="frame" x="20" y="159" width="138.5" height="1"/>
<mask key="constraints">
<include reference="RHR-oC-Ve5"/>
</mask>
@@ -6311,7 +6311,7 @@ Share with friends</string>
</mask>
</variation>
<variation key="heightClass=regular-widthClass=compact" misplaced="YES">
-                                    <rect key="frame" x="242" y="159" width="138" height="1"/>
+                                    <rect key="frame" x="241" y="159" width="138.5" height="1"/>
<mask key="constraints">
<include reference="HZ8-ae-IUF"/>
</mask>
@@ -6354,7 +6354,7 @@ Share with friends</string>
</mask>
</variation>
<variation key="heightClass=regular-widthClass=compact" misplaced="YES">
-                                    <rect key="frame" x="164" y="150" width="73" height="19"/>
+                                    <rect key="frame" x="163" y="150" width="73" height="19"/>

(见第3和第4行的高度差)

我正在使用自动布局。这对AutoLayout来说很常见吗?或者我做错了什么?

0 个答案:

没有答案
相关问题