From 6f426c320f29f22fe55aa9d81056032ba189277c Mon Sep 17 00:00:00 2001 From: kai60 Date: Thu, 19 May 2022 20:44:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=A9=E5=BA=A6=E6=A0=A1=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../XuanduoTempratueCorrectViewController.m | 9 +- .../XuTo/XuanduoTempratureCorrectView.xib | 85 +++++++++++++++++-- 2 files changed, 84 insertions(+), 10 deletions(-) diff --git a/Ifish/controllers/FishTinkController/maincontroller/CenterontrolControllers/XuTo/XuanduoTempratueCorrectViewController.m b/Ifish/controllers/FishTinkController/maincontroller/CenterontrolControllers/XuTo/XuanduoTempratueCorrectViewController.m index 197dee2..7109768 100644 --- a/Ifish/controllers/FishTinkController/maincontroller/CenterontrolControllers/XuTo/XuanduoTempratueCorrectViewController.m +++ b/Ifish/controllers/FishTinkController/maincontroller/CenterontrolControllers/XuTo/XuanduoTempratueCorrectViewController.m @@ -29,6 +29,7 @@ #import "XuToControlName.h" #import "UserExtendataArchaver.h" #import "TimerTypeTableViewCell.h" +#import "XuanduoTempratureCorrectView.h" #define kBtnTag 500 #define kSwitchBtnTag 600 @@ -163,9 +164,15 @@ static NSString *timerTypeFlag = @"TimerTypeTableViewCell"; [self.tableView registerNib:[UINib nibWithNibName:addCellid bundle:nil] forCellReuseIdentifier:addCellid]; //[self.tableView registerNib:[UINib nibWithNibName:timerTypeFlag bundle:nil] forCellReuseIdentifier:timerTypeFlag]; [self.tableView registerNib:[UINib nibWithNibName:setTimerflag bundle:nil] forCellReuseIdentifier:setTimerflag]; + XuanduoTempratureCorrectView*tempView=[XuanduoTempratureCorrectView viewFromXib]; + tempView.frame=CGRectMake(10, 10, 300, 200); + tempView.centerX=self.view.centerX; + [self.view addSubview:tempView]; + + } --(void)clickCell:(TimerTypeTableViewCell *)cell button:(UIButton *)button timerType:(NSInteger *)type +-(void)clickCell:(TimerTypeTableViewCell *)cell button:(UIButton *)button timerType:(NSInteger )type { XuanduoTimerSettingViewController *_settingVC = [[XuanduoTimerSettingViewController alloc] init]; _settingVC.currentdevice = self.currentdevice; diff --git a/Ifish/controllers/FishTinkController/maincontroller/CenterontrolControllers/XuTo/XuanduoTempratureCorrectView.xib b/Ifish/controllers/FishTinkController/maincontroller/CenterontrolControllers/XuTo/XuanduoTempratureCorrectView.xib index b3921d8..f658e6f 100644 --- a/Ifish/controllers/FishTinkController/maincontroller/CenterontrolControllers/XuTo/XuanduoTempratureCorrectView.xib +++ b/Ifish/controllers/FishTinkController/maincontroller/CenterontrolControllers/XuTo/XuanduoTempratureCorrectView.xib @@ -5,24 +5,91 @@ - - + + + + + + + + - + + + + + + + + + + + + + + + + + + + + - + - - - - -