宠物店修改

This commit is contained in:
kai60
2020-05-02 14:56:49 +08:00
parent 8fca79324a
commit 53f06fcf43
100 changed files with 2672 additions and 198 deletions
+3 -1
View File
@@ -13,7 +13,7 @@
@required
-(void)disSelectedPopViewIndex:(NSIndexPath *)Index;
-(UITableViewCell *)tableView:(UITableView *)tableView cellForPopViewIndexPath:(NSIndexPath *)indexPath;
@end
@@ -30,5 +30,7 @@
@property(nonatomic,strong) NSArray *titles;
@property(nonatomic,strong) NSArray *titleImgs;
@property(nonatomic,strong) UIImage *backgroundImage;
@property (nonatomic, strong) UIImageView *backImageView;
-(void)changeStyle:(NSString*)style;
@end
+26 -11
View File
@@ -34,6 +34,7 @@
UIImageView *bakc=[[UIImageView alloc] initWithFrame:CGRectMake(0, 10, self.frame.size.width, self.frame.size.height)];
bakc.image = self.backgroundImage;
self.backImageView=bakc;
//bakc.backgroundColor = [UIColor redColor];
[self addSubview:bakc];
@@ -56,6 +57,12 @@
[self addSubview:self.tableView];
}
-(void)changeStyle:(NSString*)style
{
self.backgroundColor=[UIColor whiteColor];
[self.backImageView removeFromSuperview];
self.tableView.backgroundColor=[UIColor whiteColor];
}
#pragma mark - Table view data source
@@ -77,22 +84,30 @@
{
PopCell *cell =[tableView dequeueReusableCellWithIdentifier:@"PopCell"];
if (!cell) {
UITableViewCell*realcell;
if ([self.delegate respondsToSelector:@selector(tableView:cellForPopViewIndexPath:)]) {
realcell=[self.delegate tableView:tableView cellForPopViewIndexPath:indexPath];
}
else
{
PopCell *cell =[tableView dequeueReusableCellWithIdentifier:@"PopCell"];
cell = [[[NSBundle mainBundle] loadNibNamed:@"PopCell" owner:self options:nil]lastObject];
if (!cell) {
cell = [[[NSBundle mainBundle] loadNibNamed:@"PopCell" owner:self options:nil]lastObject];
}
cell.nametitle.text = self.titles[indexPath.row];
cell.backgroundColor = [UIColor colorWithRed:40.0/256.0 green:40.0/256.0 blue:40.0/256.0 alpha:1];
cell.nametitle.textColor = [UIColor whiteColor];
cell.selectionStyle = UITableViewCellSelectionStyleNone;
cell.popViewHeaderImg.image = [UIImage imageNamed:self.titleImgs[indexPath.row]];
realcell=cell;
}
cell.nametitle.text = self.titles[indexPath.row];
cell.backgroundColor = [UIColor colorWithRed:40.0/256.0 green:40.0/256.0 blue:40.0/256.0 alpha:1];
cell.nametitle.textColor = [UIColor whiteColor];
cell.selectionStyle = UITableViewCellSelectionStyleNone;
cell.popViewHeaderImg.image = [UIImage imageNamed:self.titleImgs[indexPath.row]];
return cell;
return realcell;
}
+32
View File
@@ -0,0 +1,32 @@
//
// StoreNameView.h
// Ifish
//
// Created by 祝发冬 on 2020/4/20.
// Copyright © 2020 lianlian. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "LXPopView.h"
#import "DXPopover.h"
#import "AppDelegate.h"
NS_ASSUME_NONNULL_BEGIN
@interface StoreNameView : UIView<UITextFieldDelegate,UITableViewDelegate,UITableViewDataSource>
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UILabel *createStoreLabel;
@property (weak, nonatomic) IBOutlet UITextField *storeNameField;
@property (weak, nonatomic) IBOutlet UITextField *oldStoreNameField;
@property (weak, nonatomic) IBOutlet UIButton *cancelButton;
@property (weak, nonatomic) IBOutlet UIButton *sureButton;
@property (nonatomic, copy) void(^sureBlock)(NSString*name) ;
@property (nonatomic, copy) void(^cancelBlock)() ;
@property (nonatomic, strong) DXPopover *popover;
@property (weak, nonatomic) IBOutlet UILabel *oldLabel;
@property(nonatomic,strong) UITableView *tableView;
@property (nonatomic, strong) NSArray *titles;
@property (nonatomic, weak) UIViewController *controller;
@end
NS_ASSUME_NONNULL_END
+156
View File
@@ -0,0 +1,156 @@
//
// StoreNameView.m
// Ifish
//
// Created by 祝发冬 on 2020/4/20.
// Copyright © 2020 lianlian. All rights reserved.
//
#import "StoreNameView.h"
@implementation StoreNameView
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
// Drawing code
}
*/
-(void)awakeFromNib
{
[super awakeFromNib];
self.layer.borderWidth=0.5;
self.layer.borderColor=[UIColor lightGrayColor].CGColor;
self.titleLabel.layer.borderColor=[UIColor lightGrayColor].CGColor;
self.titleLabel.layer.borderWidth=0.5;
self.storeNameField.layer.borderColor=[UIColor lightGrayColor].CGColor;
self.storeNameField.layer.borderWidth=0.5;
self.autoresizingMask=UIViewAutoresizingNone;
self.autoresizesSubviews=NO;
UIButton*more=[UIButton buttonWithType:UIButtonTypeCustom];
more.frame=CGRectMake(0, 0, 30, 30);
[more setImage:[UIImage imageNamed:@"xialasanjiao"] forState:UIControlStateNormal];
[more addTarget:self action:@selector(showStoreName:) forControlEvents:UIControlEventTouchUpInside];
self.oldStoreNameField.layer.borderColor=[UIColor lightGrayColor].CGColor;
self.oldStoreNameField.layer.borderWidth=0.5;
self.oldStoreNameField.delegate=self;
self.oldStoreNameField.clearButtonMode=UITextFieldViewModeAlways;
self.oldStoreNameField.rightViewMode=UITextFieldViewModeAlways;
self.cancelButton.layer.borderColor=[UIColor lightGrayColor].CGColor;
self.oldStoreNameField.rightView=more;
self.cancelButton.layer.borderWidth=0.5;
self.cancelButton.layer.masksToBounds=YES;
self.sureButton.layer.borderColor=[UIColor lightGrayColor].CGColor;
self.sureButton.layer.borderWidth=0.5;
self.sureButton.layer.masksToBounds=YES;
self.sureButton.layer.cornerRadius=5;
self.cancelButton.layer.cornerRadius=5;
[self.sureButton addTarget:self action:@selector(click:) forControlEvents:UIControlEventTouchUpInside];
[self.cancelButton addTarget:self action:@selector(click:) forControlEvents:UIControlEventTouchUpInside];
NSDictionary*dict=[[DataCenter defaultDtacenter] valueForKey:@"petStores"];
NSArray *titles=dict.allKeys;
self.titles=titles;
self.tableView = [[UITableView alloc] init];
self.tableView.frame = CGRectMake(0, 0, self.frame.size.width, titles.count>3?3*44:titles.count*44);
//self.tableView.frame = CGRectMake(0,12.0, self.frame.size.width, self.frame.size.height);
self.tableView.delegate = self;
self.tableView.dataSource = self;
}
-(void)click:(UIButton*)buton
{
[self.popover dismiss];
if (buton.tag==1)
{
if (self.cancelBlock) {
self.cancelBlock();
}
}
else
{
if (self.sureBlock) {
NSString*name;
if (self.storeNameField.text.length)
{
name=self.storeNameField.text;
}
else if(self.oldStoreNameField.text.length)
{
name=self.oldStoreNameField.text;
}
else
{
[self makeToast:@"请输入或者选择名称!"];
}
if (name.length) {
self.sureBlock(name);
}
}
}
}
-(void)showStoreName:(UIButton*)button
{
self.tableView.frame = CGRectMake(0, 0, self.frame.size.width-40, self.titles.count>2?2*44:self.titles.count*44);
DXPopover *popover = [DXPopover new];
self.tableView.layer.masksToBounds=YES;
self.popover = popover;
self.popover.backgroundColor = [UIColor lightGrayColor];
self.popover.cornerRadius=10;
popover.arrowSize = CGSizeMake(5,5);
[popover showAtPoint:CGPointMake(self.oldStoreNameField.center.x, self.oldStoreNameField.center.y+15) popoverPostion:DXPopoverPositionDown withContentView:self.tableView inView:self];
}
-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
NSString*model= self.titles[indexPath.row];
self.oldStoreNameField.text=model;
[self.popover dismiss];
[tableView deselectRowAtIndexPath:indexPath animated:YES];
}
-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
return self.titles.count;
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
UITableViewCell*cell=[tableView dequeueReusableCellWithIdentifier:@"storeName"];
NSString*model= self.titles[indexPath.row];
if (!cell)
{
cell=[[UITableViewCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"storeName"];
}
cell.textLabel.text=model;
return cell;
}
-(BOOL)textFieldShouldClear:(UITextField *)textField
{
return YES;
}
-(BOOL)textFieldShouldBeginEditing:(UITextField *)textField
{
return NO;
}
@end
+118
View File
@@ -0,0 +1,118 @@
<?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" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina4_7" orientation="portrait">
<adaptation id="fullscreen"/>
</device>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14460.20"/>
<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"/>
<view autoresizesSubviews="NO" contentMode="scaleToFill" id="iN0-l3-epB" customClass="StoreNameView">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="center" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="确认宠物店" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Xma-OD-U5k">
<rect key="frame" x="0.0" y="0.0" width="375" height="50"/>
<constraints>
<constraint firstAttribute="height" constant="50" id="69g-fb-1g0"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="textColor"/>
<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="aXJ-p7-oyj">
<rect key="frame" x="20" y="55" width="335" height="21"/>
<constraints>
<constraint firstAttribute="height" constant="21" id="Xh2-xx-l5K"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="15"/>
<nil key="textColor"/>
<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="BhC-qC-LQP">
<rect key="frame" x="20" y="131" width="335" height="21"/>
<constraints>
<constraint firstAttribute="height" constant="21" id="GIW-cD-aCF"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="15"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="Lua-1g-dWJ" userLabel="name">
<rect key="frame" x="20" y="86" width="335" height="30"/>
<constraints>
<constraint firstAttribute="height" constant="30" id="hdU-TO-9n8"/>
</constraints>
<nil key="textColor"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<textInputTraits key="textInputTraits"/>
</textField>
<textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="4fu-eE-Cen" userLabel="oldName">
<rect key="frame" x="20" y="162" width="335" height="30"/>
<constraints>
<constraint firstAttribute="height" constant="30" id="8Pc-yH-bm5"/>
</constraints>
<nil key="textColor"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<textInputTraits key="textInputTraits"/>
</textField>
<button opaque="NO" tag="2" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="ohE-i9-kyM">
<rect key="frame" x="255" y="207" width="60" height="30"/>
<constraints>
<constraint firstAttribute="height" constant="30" id="DAg-mH-UQg"/>
<constraint firstAttribute="width" constant="60" id="LiE-Bd-jKO"/>
</constraints>
<state key="normal" title="确定">
<color key="titleColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</state>
</button>
<button opaque="NO" tag="1" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Caw-lq-KG3">
<rect key="frame" x="60" y="207" width="60" height="30"/>
<constraints>
<constraint firstAttribute="height" constant="30" id="Xs2-Ay-F82"/>
<constraint firstAttribute="width" constant="60" id="jpe-aw-asa"/>
</constraints>
<state key="normal" title="取消">
<color key="titleColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</state>
</button>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="Lua-1g-dWJ" firstAttribute="trailing" secondItem="aXJ-p7-oyj" secondAttribute="trailing" id="18y-Uf-rZF"/>
<constraint firstItem="BhC-qC-LQP" firstAttribute="top" secondItem="Lua-1g-dWJ" secondAttribute="bottom" constant="15" id="3xA-Sx-zmg"/>
<constraint firstAttribute="trailing" secondItem="ohE-i9-kyM" secondAttribute="trailing" constant="60" id="56t-VZ-WQJ"/>
<constraint firstItem="Caw-lq-KG3" firstAttribute="top" secondItem="4fu-eE-Cen" secondAttribute="bottom" constant="15" id="FXq-wn-PQO"/>
<constraint firstItem="Xma-OD-U5k" firstAttribute="top" secondItem="iN0-l3-epB" secondAttribute="top" id="Gli-0E-S2Z"/>
<constraint firstItem="Lua-1g-dWJ" firstAttribute="leading" secondItem="aXJ-p7-oyj" secondAttribute="leading" id="HFM-Nc-OUh"/>
<constraint firstAttribute="trailing" secondItem="aXJ-p7-oyj" secondAttribute="trailing" constant="20" id="IZn-CA-VVK"/>
<constraint firstItem="4fu-eE-Cen" firstAttribute="leading" secondItem="Lua-1g-dWJ" secondAttribute="leading" id="Itq-9x-8ln"/>
<constraint firstItem="aXJ-p7-oyj" firstAttribute="top" secondItem="Xma-OD-U5k" secondAttribute="bottom" constant="5" id="JTf-DK-HBe"/>
<constraint firstItem="Xma-OD-U5k" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="Mr0-BK-5WJ"/>
<constraint firstItem="4fu-eE-Cen" firstAttribute="top" secondItem="BhC-qC-LQP" secondAttribute="bottom" constant="10" id="PhV-ha-1Q0"/>
<constraint firstItem="aXJ-p7-oyj" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="20" id="T14-0j-TSb"/>
<constraint firstItem="Lua-1g-dWJ" firstAttribute="top" secondItem="aXJ-p7-oyj" secondAttribute="bottom" constant="10" id="VKG-TI-vuY"/>
<constraint firstItem="BhC-qC-LQP" firstAttribute="leading" secondItem="Lua-1g-dWJ" secondAttribute="leading" id="ViC-BE-t66"/>
<constraint firstItem="ohE-i9-kyM" firstAttribute="top" secondItem="4fu-eE-Cen" secondAttribute="bottom" constant="15" id="aMk-xg-b0F"/>
<constraint firstAttribute="trailing" secondItem="Xma-OD-U5k" secondAttribute="trailing" id="cOo-TT-cQW"/>
<constraint firstItem="4fu-eE-Cen" firstAttribute="trailing" secondItem="Lua-1g-dWJ" secondAttribute="trailing" id="caY-rY-tJK"/>
<constraint firstItem="BhC-qC-LQP" firstAttribute="trailing" secondItem="Lua-1g-dWJ" secondAttribute="trailing" id="odD-At-FPv"/>
<constraint firstItem="Caw-lq-KG3" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="60" id="t3d-aE-C47"/>
</constraints>
<connections>
<outlet property="cancelButton" destination="Caw-lq-KG3" id="rnc-iz-wGl"/>
<outlet property="createStoreLabel" destination="aXJ-p7-oyj" id="Qq5-hR-Q4q"/>
<outlet property="oldLabel" destination="BhC-qC-LQP" id="kU2-4D-g7J"/>
<outlet property="oldStoreNameField" destination="4fu-eE-Cen" id="iL0-HX-rgW"/>
<outlet property="storeNameField" destination="Lua-1g-dWJ" id="VNt-On-SRd"/>
<outlet property="sureButton" destination="ohE-i9-kyM" id="QFF-1R-rzS"/>
<outlet property="titleLabel" destination="Xma-OD-U5k" id="kur-8y-wEk"/>
</connections>
<point key="canvasLocation" x="130.40000000000001" y="153.37331334332833"/>
</view>
</objects>
</document>
+2 -1
View File
@@ -23,6 +23,7 @@
@property(nonatomic,copy)NSString*picViewResultString;
@property(nonatomic,copy)NSString*picString;
@property (nonatomic, strong) NSString *type;
-(instancetype)initWithFrame:(CGRect)frame type:(NSString*)type;
@end
+26 -3
View File
@@ -7,6 +7,7 @@
//
#import "remindCyclePic.h"
#import "IfishDeviceInfo.h"
#define CANCLE_BTN 100000100
#define SURE_BTN 100000120
@interface remindCyclePic()<UIPickerViewDataSource,UIPickerViewDelegate>
@@ -17,14 +18,24 @@
self=[super initWithFrame:frame];
if (self) {
[self initPic];
[self initPictype:nil];
}
return self;
}
-(void)initPic{
-(instancetype)initWithFrame:(CGRect)frame type:(NSString*)type{
self=[super initWithFrame:frame];
if (self) {
[self initPictype:type];
}
return self;
}
-(void)initPictype:(NSString*)type {
_type=type;
CGFloat imgWid= kScreenSize.width - 40*2;
CGFloat imHeight= kScreenSize.width - 60;
self.backgroundColor=[UIColor colorWithWhite:0 alpha:0.5];
@@ -35,6 +46,13 @@
_picBackImg.userInteractionEnabled=YES;
UILabel*title=[[UILabel alloc]initWithFrame:CGRectMake(10, 10, _picBackImg.frame.size.width-10*2, 20)];
title.text=@"换水天数选择";
if ([self.type isEqualToString:DECICE_TYPE_XUANDUO3F]) {
title.text=@"杀菌天数选择";
}
else if ([self.type isEqualToString:@"temp"]) {
title.text=@"恒温设置";
}
title.textAlignment=NSTextAlignmentCenter;
[_picBackImg addSubview:title];
@@ -86,6 +104,7 @@
}
-(void)dissmissView{
[self removeFromSuperview];
@@ -95,6 +114,10 @@
-(void)dataSource{
_picArr=@[@[@"1",@"2",@"3",@"4",@"5",@"6",@"7",@"8",@"9",@"10",@"11",@"12",@"13",@"14",@"15",@"16",@"17",@"18",@"19",@"20",@"21",@"22",@"23",@"24",@"25",@"26",@"27",@"28",@"29",@"30",@"31",@"32",@"33",@"34",@"35",@"36",@"37",@"38",@"39",@"40",@"41",@"42",@"43",@"44",@"45",@"46",@"47",@"48",@"49",@"50"]];
if ([self.type isEqualToString:@"temp"])
{
_picArr=@[@[@"1",@"2",@"3",@"4",@"5",@"6",@"7",@"8",@"9",@"10",@"11",@"12",@"13",@"14",@"15",@"16",@"17",@"18",@"19",@"20",@"21",@"22",@"23",@"24",@"25",@"26",@"27",@"28",@"29",@"30",@"31",@"32",@"33",@"34",@"35",@"36",@"37",@"38",@"39",@"40",@"41",@"42",@"43",@"44",@"45",@"46",@"47",@"48",@"49",@"50",@"51",@"52",@"53",@"54",@"55",@"56",@"57",@"58",@"59",@"60",@"61",@"62",@"63",@"64",@"65",@"66",@"67",@"68",@"69",@"70",@"71",@"72",@"73",@"74",@"75",@"76",@"77",@"78",@"79",@"80"]];
}
}
@@ -11,6 +11,7 @@
@interface ChangeWaterCell : UITableViewCell
@property (weak, nonatomic) IBOutlet UILabel *huanshuiDaylabel;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UIButton *ChangeWaterSwitch;
+15 -11
View File
@@ -1,9 +1,12 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="10117" systemVersion="15E65" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES">
<?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>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="10085"/>
<capability name="Constraints to layout margins" minToolsVersion="6.0"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14460.20"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
@@ -12,26 +15,26 @@
<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"/>
<rect key="frame" x="0.0" y="0.0" width="329" height="47.5"/>
<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">
<rect key="frame" x="18" y="15" width="93" height="18"/>
<rect key="frame" x="26" y="15" width="77" height="18"/>
<fontDescription key="fontDescription" type="system" pointSize="15"/>
<color key="textColor" red="0.1215686275" green="0.1215686275" blue="0.1215686275" alpha="1" colorSpace="calibratedRGB"/>
<color key="textColor" red="0.1215686275" green="0.1215686275" blue="0.1215686275" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<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="152" y="15" width="84" height="17"/>
<rect key="frame" x="144" y="15.5" width="84" height="17"/>
<constraints>
<constraint firstAttribute="width" constant="84" id="VGM-eZ-LlO"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<color key="textColor" red="0.4549019608" green="0.4549019608" blue="0.4549019608" alpha="1" colorSpace="calibratedRGB"/>
<color key="textColor" red="0.4549019608" green="0.4549019608" blue="0.4549019608" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="hLN-Fh-Sqa">
<rect key="frame" x="256" y="7" width="60" height="33"/>
<rect key="frame" x="248" y="7.5" width="60" height="33"/>
<constraints>
<constraint firstAttribute="width" constant="60" id="Qvn-Gu-NCL"/>
<constraint firstAttribute="height" constant="33" id="htW-pi-0lf"/>
@@ -52,8 +55,9 @@
<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="titleLabel" destination="Mjj-aG-rUn" id="yhO-z2-3Pc"/>
</connections>
<point key="canvasLocation" x="300.5" y="312"/>
<point key="canvasLocation" x="480.80000000000001" y="280.65967016491754"/>
</tableViewCell>
</objects>
<resources>