绚多45f界面初步开发

This commit is contained in:
kai60
2022-05-05 10:07:20 +08:00
parent 75a7f09cac
commit 134f8a192b
33 changed files with 1959 additions and 200 deletions
BIN
View File
Binary file not shown.
@@ -13,6 +13,8 @@
@property (weak, nonatomic) IBOutlet UILabel *huanshuiDaylabel;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UIButton *ChangeWaterSwitch;
@property (weak, nonatomic) IBOutlet UIImageView *icon;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *titileLabelLayout;
@end
+15 -6
View File
@@ -1,11 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="14460.31" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" colorMatched="YES">
<device id="retina4_7" orientation="portrait">
<adaptation id="fullscreen"/>
</device>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="19529" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" colorMatched="YES">
<device id="retina4_7" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14460.20"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="19519"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
@@ -15,7 +13,7 @@
<rect key="frame" x="0.0" y="0.0" width="329" height="48"/>
<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">
<rect key="frame" x="0.0" y="0.0" width="329" height="47.5"/>
<rect key="frame" x="0.0" y="0.0" width="329" height="48"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="换水提醒" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Mjj-aG-rUn">
@@ -24,6 +22,13 @@
<color key="textColor" red="0.1215686275" green="0.1215686275" blue="0.1215686275" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<imageView hidden="YES" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="bPu-W6-hDN" userLabel="icon">
<rect key="frame" x="18" y="11" width="30" height="26"/>
<constraints>
<constraint firstAttribute="height" constant="26" id="DHw-X9-Q02"/>
<constraint firstAttribute="width" constant="30" id="pvn-WA-1rq"/>
</constraints>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" horizontalCompressionResistancePriority="751" text="设置换水周期" textAlignment="right" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="B34-8H-MOY">
<rect key="frame" x="144" y="15.5" width="84" height="17"/>
<constraints>
@@ -44,7 +49,9 @@
</subviews>
<constraints>
<constraint firstItem="hLN-Fh-Sqa" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" id="6qq-34-vRm"/>
<constraint firstItem="bPu-W6-hDN" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" id="7Mm-fk-9Zw"/>
<constraint firstItem="Mjj-aG-rUn" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" id="Bf2-uk-zoA"/>
<constraint firstItem="bPu-W6-hDN" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="18" id="In1-QK-w7N"/>
<constraint firstItem="B34-8H-MOY" firstAttribute="leading" secondItem="Mjj-aG-rUn" secondAttribute="trailing" constant="41" id="aXj-ot-8vV"/>
<constraint firstAttribute="trailingMargin" secondItem="hLN-Fh-Sqa" secondAttribute="trailing" constant="5" id="dd0-Ro-5Sl"/>
<constraint firstItem="hLN-Fh-Sqa" firstAttribute="leading" secondItem="B34-8H-MOY" secondAttribute="trailing" constant="20" id="o6f-MO-pkf"/>
@@ -55,6 +62,8 @@
<connections>
<outlet property="ChangeWaterSwitch" destination="hLN-Fh-Sqa" id="lmL-w1-THT"/>
<outlet property="huanshuiDaylabel" destination="B34-8H-MOY" id="kZD-uO-VMn"/>
<outlet property="icon" destination="bPu-W6-hDN" id="eNc-Qh-bjW"/>
<outlet property="titileLabelLayout" destination="wcw-Bh-YPu" id="baa-Nn-Ljl"/>
<outlet property="titleLabel" destination="Mjj-aG-rUn" id="yhO-z2-3Pc"/>
</connections>
<point key="canvasLocation" x="480.80000000000001" y="280.65967016491754"/>
+2 -1
View File
@@ -16,5 +16,6 @@
//@property (weak, nonatomic) IBOutlet UISwitch *tempSwitch;
@property (weak, nonatomic) IBOutlet UIButton *temPSwitch;
@property (weak, nonatomic) IBOutlet UIImageView *icon;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *titileLabelLayout;
@end
+19 -11
View File
@@ -1,12 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="14113" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" colorMatched="YES">
<device id="retina4_7" orientation="portrait">
<adaptation id="fullscreen"/>
</device>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="19529" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" colorMatched="YES">
<device id="retina4_7" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14088"/>
<capability name="Constraints to layout margins" minToolsVersion="6.0"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="19519"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
@@ -16,17 +13,17 @@
<rect key="frame" x="0.0" y="0.0" width="336" height="51"/>
<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">
<rect key="frame" x="0.0" y="0.0" width="336" height="50.5"/>
<rect key="frame" x="0.0" y="0.0" width="336" height="51"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="right" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="ldH-Zi-Nv3">
<rect key="frame" x="197" y="14" width="38" height="18"/>
<rect key="frame" x="197" y="16" width="38" height="18"/>
<fontDescription key="fontDescription" type="system" pointSize="15"/>
<color key="textColor" red="0.45490196078431372" green="0.45490196078431372" blue="0.45490196078431372" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="0CU-uJ-mzK">
<rect key="frame" x="26" y="17" width="87" height="15"/>
<rect key="frame" x="26" y="17" width="87" height="17"/>
<constraints>
<constraint firstAttribute="width" constant="87" id="uWM-a2-TdU"/>
</constraints>
@@ -35,7 +32,7 @@
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="U9D-Nd-wVC">
<rect key="frame" x="255" y="8" width="60" height="33"/>
<rect key="frame" x="255" y="9" width="60" height="33"/>
<constraints>
<constraint firstAttribute="height" constant="33" id="QNA-2E-zkO"/>
<constraint firstAttribute="width" constant="60" id="jL2-Td-vJx"/>
@@ -44,23 +41,34 @@
<color key="titleColor" red="0.0" green="0.0" blue="0.0" alpha="0.0" colorSpace="custom" customColorSpace="sRGB"/>
</state>
</button>
<imageView hidden="YES" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="hEW-4g-UYf" userLabel="icon">
<rect key="frame" x="18" y="12.5" width="30" height="26"/>
<constraints>
<constraint firstAttribute="height" constant="26" id="AJh-Gc-iCL"/>
<constraint firstAttribute="width" constant="30" id="ObA-ca-lzx"/>
</constraints>
</imageView>
</subviews>
<constraints>
<constraint firstAttribute="trailingMargin" secondItem="U9D-Nd-wVC" secondAttribute="trailing" constant="5" id="8FH-S6-oHu"/>
<constraint firstItem="0CU-uJ-mzK" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="topMargin" constant="6" id="HxQ-9E-mPT"/>
<constraint firstItem="U9D-Nd-wVC" firstAttribute="leading" secondItem="ldH-Zi-Nv3" secondAttribute="trailing" constant="20" id="KiI-X3-nhs"/>
<constraint firstItem="U9D-Nd-wVC" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" id="U9v-iC-LZg"/>
<constraint firstItem="hEW-4g-UYf" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" id="eoc-KF-Con"/>
<constraint firstItem="0CU-uJ-mzK" firstAttribute="centerY" secondItem="U9D-Nd-wVC" secondAttribute="centerY" id="iGh-2k-hkq"/>
<constraint firstItem="hEW-4g-UYf" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="18" id="kiJ-Wg-QWq"/>
<constraint firstItem="0CU-uJ-mzK" firstAttribute="baseline" secondItem="ldH-Zi-Nv3" secondAttribute="baseline" id="tae-WZ-xS7"/>
<constraint firstItem="0CU-uJ-mzK" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leadingMargin" constant="10" id="vt1-8R-3pK"/>
</constraints>
</tableViewCellContentView>
<connections>
<outlet property="icon" destination="hEW-4g-UYf" id="8Q2-e9-cwD"/>
<outlet property="temPSwitch" destination="U9D-Nd-wVC" id="JR3-5b-l1R"/>
<outlet property="temperaturelabel" destination="ldH-Zi-Nv3" id="eg6-Cm-jgD"/>
<outlet property="titileLabelLayout" destination="vt1-8R-3pK" id="CaU-Jo-Ukd"/>
<outlet property="titleLabel" destination="0CU-uJ-mzK" id="xFm-He-KNJ"/>
</connections>
<point key="canvasLocation" x="405" y="317.5"/>
<point key="canvasLocation" x="585.60000000000002" y="211.84407796101951"/>
</tableViewCell>
</objects>
<resources>