资源文件添加控制器创建

This commit is contained in:
kai60
2022-05-03 11:10:37 +08:00
parent 27b8ee3653
commit 75a7f09cac
50 changed files with 2125 additions and 1 deletions
@@ -28,6 +28,7 @@
#import "searchDeviceModel.h"
#import "PetStoresViewController.h"
#import "UIImage+WaterMark.h"
#import "XuanduoSettingController.h"
#define kBtnTag 100
@@ -1038,7 +1039,14 @@
#pragma mark -设置页面 -
- (void)setting {
if (self.dataModel.gasPump.length) {
if ([self.currentDevice.type isEqualToString:DECICE_TYPE_XUANDUO4F]||[self.currentDevice.type isEqualToString:DECICE_TYPE_XUANDUO5F])
{
XuanduoSettingController *_settingVC = [[XuanduoSettingController alloc] init];
_settingVC.currentdevice = self.currentDevice;
_settingVC.dataModel = self.dataModel;
[self.navigationController pushViewController:_settingVC animated:YES];
}
else if (self.dataModel.gasPump.length) {
Xuanduo2SettingController *_settingVC = [[Xuanduo2SettingController alloc] init];
_settingVC.currentdevice = self.currentDevice;
_settingVC.dataModel = self.dataModel;
@@ -0,0 +1,27 @@
//
// Xuanduo2SettingController.h
// Ifish
//
// Created by Alex on 2019/4/28.
// Copyright © 2019 lianlian. All rights reserved.
//
#import "FatherController.h"
#import "IfishDeviceInfo.h"
#include "xuanduo3fModel.h"
NS_ASSUME_NONNULL_BEGIN
@class Xuanduo2Model;
@interface XuanduoSettingController : FatherController
@property (nonatomic,strong) UIActivityIndicatorView*indicatorView;
@property (nonatomic ,strong) id dataModel;
@property(nonatomic,strong) DeviceModel* currentdevice;
- (void)refreshWithData:(id)model;
@end
NS_ASSUME_NONNULL_END