TrainCell.xib 10.5 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="TrainCell" customModule="HDFwear" customModuleProvider="target">
            <rect key="frame" x="0.0" y="0.0" width="233" height="187"/>
            <autoresizingMask key="autoresizingMask"/>
            <view key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center">
                <rect key="frame" x="0.0" y="0.0" width="233" height="187"/>
                <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
                <subviews>
                    <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="home_train" translatesAutoresizingMaskIntoConstraints="NO" id="mSZ-VW-9tS">
                        <rect key="frame" x="10" y="10" width="22" height="22"/>
                        <constraints>
                            <constraint firstAttribute="width" constant="22" id="SgV-fo-E7K"/>
                            <constraint firstAttribute="height" constant="22" id="hjZ-Yh-Kw9"/>
                        </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="5Ie-Ha-PGF">
                        <rect key="frame" x="42" y="11.5" width="186" 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="kQF-7N-pFg">
                        <rect key="frame" x="10" y="42" width="30.5" height="35"/>
                        <fontDescription key="fontDescription" name="PingFangSC-Medium" family="PingFang SC" pointSize="25"/>
                        <nil key="textColor"/>
                        <nil key="highlightedColor"/>
                    </label>
                    <view userInteractionEnabled="NO" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="X6R-Yc-1BP" customClass="BarChartView" customModule="Charts">
                        <rect key="frame" x="0.0" y="82" width="228" height="104"/>
                        <color key="backgroundColor" systemColor="systemBackgroundColor"/>
                    </view>
                    <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="home_train_nodata" translatesAutoresizingMaskIntoConstraints="NO" id="qq0-M6-ZAT">
                        <rect key="frame" x="10" y="88" width="189" height="67"/>
                    </imageView>
                    <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="暂无数据" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="0U9-Fu-Ck8">
                        <rect key="frame" x="88.5" y="83.5" 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="84h-AF-lu5">
                        <rect key="frame" x="204" 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 firstItem="qq0-M6-ZAT" firstAttribute="leading" secondItem="gTV-IL-0wX" secondAttribute="leading" constant="10" id="8Fj-BM-XJI"/>
                <constraint firstItem="mSZ-VW-9tS" firstAttribute="top" secondItem="gTV-IL-0wX" secondAttribute="top" constant="10" id="9xu-p7-hKT"/>
                <constraint firstItem="5Ie-Ha-PGF" firstAttribute="centerY" secondItem="mSZ-VW-9tS" secondAttribute="centerY" id="AZI-lJ-iZM"/>
                <constraint firstItem="0U9-Fu-Ck8" firstAttribute="centerY" secondItem="gTV-IL-0wX" secondAttribute="centerY" id="M0U-ZB-wzw"/>
                <constraint firstAttribute="trailing" secondItem="X6R-Yc-1BP" secondAttribute="trailing" constant="5" id="NHq-0V-Uso"/>
                <constraint firstItem="0U9-Fu-Ck8" firstAttribute="centerX" secondItem="gTV-IL-0wX" secondAttribute="centerX" id="Ugb-cv-l5S"/>
                <constraint firstItem="X6R-Yc-1BP" firstAttribute="leading" secondItem="gTV-IL-0wX" secondAttribute="leading" id="Yq7-wi-l1N"/>
                <constraint firstItem="kQF-7N-pFg" firstAttribute="leading" secondItem="gTV-IL-0wX" secondAttribute="leading" constant="10" id="cL5-0F-iLQ"/>
                <constraint firstAttribute="trailing" secondItem="qq0-M6-ZAT" secondAttribute="trailing" constant="34" id="cfw-nc-1GZ"/>
                <constraint firstItem="mSZ-VW-9tS" firstAttribute="leading" secondItem="gTV-IL-0wX" secondAttribute="leading" constant="10" id="gBv-GR-XxH"/>
                <constraint firstAttribute="trailing" secondItem="84h-AF-lu5" secondAttribute="trailing" constant="12" id="hvI-Rq-1uk"/>
                <constraint firstItem="84h-AF-lu5" firstAttribute="centerY" secondItem="5Ie-Ha-PGF" secondAttribute="centerY" id="if3-0p-x3p"/>
                <constraint firstAttribute="bottom" secondItem="X6R-Yc-1BP" secondAttribute="bottom" constant="1" id="lpm-Pd-IgV"/>
                <constraint firstItem="kQF-7N-pFg" firstAttribute="top" secondItem="mSZ-VW-9tS" secondAttribute="bottom" constant="10" id="sIX-fN-Zo5"/>
                <constraint firstAttribute="trailing" secondItem="5Ie-Ha-PGF" secondAttribute="trailing" constant="5" id="whg-0d-fQi"/>
                <constraint firstItem="X6R-Yc-1BP" firstAttribute="top" secondItem="kQF-7N-pFg" secondAttribute="bottom" constant="5" id="x67-T4-4c5"/>
                <constraint firstItem="5Ie-Ha-PGF" firstAttribute="leading" secondItem="mSZ-VW-9tS" secondAttribute="trailing" constant="10" id="yEL-mg-OkK"/>
                <constraint firstAttribute="bottom" secondItem="qq0-M6-ZAT" secondAttribute="bottom" constant="32" id="ytJ-3q-kDy"/>
            </constraints>
            <size key="customSize" width="233" height="187"/>
            <userDefinedRuntimeAttributes>
                <userDefinedRuntimeAttribute type="number" keyPath="layer.cornerRadius">
                    <integer key="value" value="10"/>
                </userDefinedRuntimeAttribute>
            </userDefinedRuntimeAttributes>
            <connections>
                <outlet property="barChartView" destination="X6R-Yc-1BP" id="UXA-T4-hmf"/>
                <outlet property="dateLabel" destination="84h-AF-lu5" id="UEt-tx-Sgq"/>
                <outlet property="lengthLabel" destination="kQF-7N-pFg" id="UHH-kZ-H63"/>
                <outlet property="noDataImageView" destination="qq0-M6-ZAT" id="jVD-cD-iAG"/>
                <outlet property="noDataLabel" destination="0U9-Fu-Ck8" id="54p-YU-RCe"/>
                <outlet property="titleLabel" destination="5Ie-Ha-PGF" id="8eN-ES-cGJ"/>
            </connections>
            <point key="canvasLocation" x="270.28985507246381" y="149.66517857142856"/>
        </collectionViewCell>
    </objects>
    <resources>
        <image name="home_train" width="24" height="24"/>
        <image name="home_train_nodata" width="126" height="67"/>
        <systemColor name="systemBackgroundColor">
            <color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
        </systemColor>
    </resources>
</document>