SleepCell.xib 10.7 KB
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="21701" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
    <device id="retina6_1" orientation="portrait" appearance="light"/>
    <dependencies>
        <deployment identifier="iOS"/>
        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="21678"/>
        <capability name="Safe area layout guides" minToolsVersion="9.0"/>
        <capability name="System colors in document resources" minToolsVersion="11.0"/>
        <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
    </dependencies>
    <objects>
        <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
        <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
        <collectionViewCell opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" id="gTV-IL-0wX" customClass="SleepCell" customModule="HDFwear" customModuleProvider="target">
            <rect key="frame" x="0.0" y="0.0" width="326" height="214"/>
            <autoresizingMask key="autoresizingMask"/>
            <view key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center">
                <rect key="frame" x="0.0" y="0.0" width="326" height="214"/>
                <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
                <subviews>
                    <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="home_sleep" translatesAutoresizingMaskIntoConstraints="NO" id="b6b-Xe-bH3">
                        <rect key="frame" x="10" y="10" width="22" height="22"/>
                        <constraints>
                            <constraint firstAttribute="width" constant="22" id="Ohu-BY-VMH"/>
                            <constraint firstAttribute="height" constant="22" id="bOS-k9-IBc"/>
                        </constraints>
                    </imageView>
                    <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" usesAttributedText="YES" lineBreakMode="tailTruncation" numberOfLines="2" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Q5w-Dn-v8e">
                        <rect key="frame" x="42" y="11.5" width="279" height="19"/>
                        <attributedString key="attributedText">
                            <fragment content="睡眠">
                                <attributes>
                                    <font key="NSFont" size="16" name="PingFangSC-Medium"/>
                                    <paragraphStyle key="NSParagraphStyle" alignment="natural" lineBreakMode="wordWrapping" baseWritingDirection="natural" maximumLineHeight="19" tighteningFactorForTruncation="0.0"/>
                                </attributes>
                            </fragment>
                        </attributedString>
                        <nil key="highlightedColor"/>
                    </label>
                    <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text=" " textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="wHO-P4-sks">
                        <rect key="frame" x="10" y="42" width="311" height="35"/>
                        <fontDescription key="fontDescription" name="PingFangSC-Medium" family="PingFang SC" pointSize="25"/>
                        <nil key="textColor"/>
                        <nil key="highlightedColor"/>
                    </label>
                    <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="home_sleep_nodata" translatesAutoresizingMaskIntoConstraints="NO" id="VZ3-4r-MvT">
                        <rect key="frame" x="9.5" y="136.5" width="295" height="29.5"/>
                    </imageView>
                    <view userInteractionEnabled="NO" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="1lx-1Z-BTY" customClass="BarChartView" customModule="Charts">
                        <rect key="frame" x="3" y="82" width="315" height="131"/>
                        <color key="backgroundColor" systemColor="systemBackgroundColor"/>
                    </view>
                    <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="暂无数据" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="HFV-Ll-hpL">
                        <rect key="frame" x="135" y="97" width="56" height="20"/>
                        <fontDescription key="fontDescription" name="PingFangSC-Medium" family="PingFang SC" pointSize="14"/>
                        <color key="textColor" red="0.59999999999999998" green="0.59999999999999998" blue="0.59999999999999998" alpha="1" colorSpace="calibratedRGB"/>
                        <nil key="highlightedColor"/>
                    </label>
                    <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="--" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Fg5-iS-v0U">
                        <rect key="frame" x="297" y="11" width="17" height="20"/>
                        <fontDescription key="fontDescription" name="PingFangSC-Medium" family="PingFang SC" pointSize="14"/>
                        <color key="textColor" red="0.59999999999999998" green="0.59999999999999998" blue="0.59999999999999998" alpha="1" colorSpace="calibratedRGB"/>
                        <nil key="highlightedColor"/>
                    </label>
                </subviews>
            </view>
            <viewLayoutGuide key="safeArea" id="ZTg-uK-7eu"/>
            <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
            <constraints>
                <constraint firstAttribute="trailing" secondItem="wHO-P4-sks" secondAttribute="trailing" constant="5" id="5P2-qg-E0X"/>
                <constraint firstItem="Q5w-Dn-v8e" firstAttribute="centerY" secondItem="b6b-Xe-bH3" secondAttribute="centerY" id="5X3-Sx-UfS"/>
                <constraint firstItem="VZ3-4r-MvT" firstAttribute="leading" secondItem="gTV-IL-0wX" secondAttribute="leading" constant="9.5" id="69k-ns-aCZ"/>
                <constraint firstAttribute="trailing" secondItem="1lx-1Z-BTY" secondAttribute="trailing" constant="8" id="6iw-jF-iU6"/>
                <constraint firstAttribute="trailing" secondItem="VZ3-4r-MvT" secondAttribute="trailing" constant="21.5" id="9cC-8c-n3F"/>
                <constraint firstAttribute="trailing" secondItem="Fg5-iS-v0U" secondAttribute="trailing" constant="12" id="EQI-Ke-kHx"/>
                <constraint firstItem="b6b-Xe-bH3" firstAttribute="leading" secondItem="gTV-IL-0wX" secondAttribute="leading" constant="10" id="Epk-Pn-jb7"/>
                <constraint firstItem="1lx-1Z-BTY" firstAttribute="top" secondItem="wHO-P4-sks" secondAttribute="bottom" constant="5" id="KNK-6A-d4z"/>
                <constraint firstItem="wHO-P4-sks" firstAttribute="top" secondItem="b6b-Xe-bH3" secondAttribute="bottom" constant="10" id="MyP-Ci-hap"/>
                <constraint firstItem="Q5w-Dn-v8e" firstAttribute="leading" secondItem="b6b-Xe-bH3" secondAttribute="trailing" constant="10" id="RAY-FA-Cpu"/>
                <constraint firstItem="HFV-Ll-hpL" firstAttribute="centerX" secondItem="gTV-IL-0wX" secondAttribute="centerX" id="Uqt-d2-BCi"/>
                <constraint firstItem="wHO-P4-sks" firstAttribute="leading" secondItem="gTV-IL-0wX" secondAttribute="leading" constant="10" id="Xgl-A3-eru"/>
                <constraint firstItem="HFV-Ll-hpL" firstAttribute="centerY" secondItem="gTV-IL-0wX" secondAttribute="centerY" id="Xua-Rz-LF4"/>
                <constraint firstAttribute="bottom" secondItem="1lx-1Z-BTY" secondAttribute="bottom" constant="1" id="ZIf-Lg-hoP"/>
                <constraint firstAttribute="trailing" secondItem="Q5w-Dn-v8e" secondAttribute="trailing" constant="5" id="aMl-is-qIT"/>
                <constraint firstItem="1lx-1Z-BTY" firstAttribute="leading" secondItem="gTV-IL-0wX" secondAttribute="leading" constant="3" id="cXM-hS-QIR"/>
                <constraint firstAttribute="bottom" secondItem="VZ3-4r-MvT" secondAttribute="bottom" constant="48" id="h1q-l2-sYp"/>
                <constraint firstItem="b6b-Xe-bH3" firstAttribute="top" secondItem="gTV-IL-0wX" secondAttribute="top" constant="10" id="suU-sG-2Cg"/>
                <constraint firstItem="Fg5-iS-v0U" firstAttribute="centerY" secondItem="Q5w-Dn-v8e" secondAttribute="centerY" id="w15-vs-4az"/>
            </constraints>
            <size key="customSize" width="326" height="214"/>
            <userDefinedRuntimeAttributes>
                <userDefinedRuntimeAttribute type="number" keyPath="layer.cornerRadius">
                    <integer key="value" value="10"/>
                </userDefinedRuntimeAttribute>
            </userDefinedRuntimeAttributes>
            <connections>
                <outlet property="barChartView" destination="1lx-1Z-BTY" id="xA4-T5-Uwx"/>
                <outlet property="dateLabel" destination="Fg5-iS-v0U" id="Two-Py-M5L"/>
                <outlet property="lengthLabel" destination="wHO-P4-sks" id="fyV-WE-RQY"/>
                <outlet property="noDataImageView" destination="VZ3-4r-MvT" id="EGp-lq-M6p"/>
                <outlet property="noDataLabel" destination="HFV-Ll-hpL" id="cBD-OY-tRx"/>
                <outlet property="titleLabel" destination="Q5w-Dn-v8e" id="x8v-9J-SJF"/>
            </connections>
            <point key="canvasLocation" x="337.68115942028987" y="158.70535714285714"/>
        </collectionViewCell>
    </objects>
    <resources>
        <image name="home_sleep" width="23.5" height="24"/>
        <image name="home_sleep_nodata" width="139" height="29.5"/>
        <systemColor name="systemBackgroundColor">
            <color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
        </systemColor>
    </resources>
</document>