宠物店修改

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
+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"]];
}
}