|
@@ -71,7 +71,7 @@
|
|
|
NSArray *titleArray =@[@"设备编号:",@"设备名称:",@"安装位置:",@"所属场所:"];
|
|
NSArray *titleArray =@[@"设备编号:",@"设备名称:",@"安装位置:",@"所属场所:"];
|
|
|
UILabel *deveceLabel = [[UILabel alloc]init];
|
|
UILabel *deveceLabel = [[UILabel alloc]init];
|
|
|
deveceLabel.text = [titleArray objectAtIndex:i];
|
|
deveceLabel.text = [titleArray objectAtIndex:i];
|
|
|
- deveceLabel.frame = CGRectMake(20+(100)*(i/4), 70+(40)*(i%4), 100, 40);
|
|
|
|
|
|
|
+ deveceLabel.frame = CGRectMake(20+(100)*(i/4), kTopHeight+(40)*(i%4), 100, 40);
|
|
|
deveceLabel.textAlignment = NSTextAlignmentLeft;
|
|
deveceLabel.textAlignment = NSTextAlignmentLeft;
|
|
|
deveceLabel.font = [UIFont systemFontOfSize:18];
|
|
deveceLabel.font = [UIFont systemFontOfSize:18];
|
|
|
deveceLabel.textColor = [UIColor blackColor];
|
|
deveceLabel.textColor = [UIColor blackColor];
|
|
@@ -80,7 +80,7 @@
|
|
|
|
|
|
|
|
for (int i =0; i<2; i++) {
|
|
for (int i =0; i<2; i++) {
|
|
|
UILabel *detailLabel = [[UILabel alloc]init];
|
|
UILabel *detailLabel = [[UILabel alloc]init];
|
|
|
- detailLabel.frame = CGRectMake(110+(200)*(i/2), 70+(40)*(i%2), WIDTH-130, 40);
|
|
|
|
|
|
|
+ detailLabel.frame = CGRectMake(110+(200)*(i/2), kTopHeight+(40)*(i%2), WIDTH-130, 40);
|
|
|
detailLabel.tag = i;
|
|
detailLabel.tag = i;
|
|
|
if (i==0) {
|
|
if (i==0) {
|
|
|
detailLabel.text = _deveceNumber;
|
|
detailLabel.text = _deveceNumber;
|
|
@@ -93,7 +93,7 @@
|
|
|
[self.view addSubview:detailLabel];
|
|
[self.view addSubview:detailLabel];
|
|
|
}
|
|
}
|
|
|
_locationTF = [[UITextField alloc]init];
|
|
_locationTF = [[UITextField alloc]init];
|
|
|
- _locationTF.frame = CGRectMake(110, 150, WIDTH-130, 40);
|
|
|
|
|
|
|
+ _locationTF.frame = CGRectMake(110, kTopHeight+80, WIDTH-130, 40);
|
|
|
_locationTF.delegate = self;
|
|
_locationTF.delegate = self;
|
|
|
|
|
|
|
|
_locationTF.textAlignment = NSTextAlignmentLeft;
|
|
_locationTF.textAlignment = NSTextAlignmentLeft;
|
|
@@ -103,7 +103,7 @@
|
|
|
|
|
|
|
|
_siteTF = [[UITextField alloc]init];
|
|
_siteTF = [[UITextField alloc]init];
|
|
|
_siteTF.userInteractionEnabled =YES;
|
|
_siteTF.userInteractionEnabled =YES;
|
|
|
- _siteTF.frame = CGRectMake(110, 190, WIDTH-130, 40);
|
|
|
|
|
|
|
+ _siteTF.frame = CGRectMake(110, kTopHeight+120, WIDTH-130, 40);
|
|
|
_siteTF.textAlignment = NSTextAlignmentLeft;
|
|
_siteTF.textAlignment = NSTextAlignmentLeft;
|
|
|
_siteTF.font = [UIFont systemFontOfSize:18];
|
|
_siteTF.font = [UIFont systemFontOfSize:18];
|
|
|
_siteTF.delegate =self;
|
|
_siteTF.delegate =self;
|
|
@@ -119,7 +119,7 @@
|
|
|
|
|
|
|
|
for (int i =0; i<2; i++) {
|
|
for (int i =0; i<2; i++) {
|
|
|
UIView *line = [[UIView alloc]init];
|
|
UIView *line = [[UIView alloc]init];
|
|
|
- line.frame = CGRectMake(110+200*(i/2), 189+(39)*(i%2), WIDTH-130, 1);
|
|
|
|
|
|
|
+ line.frame = CGRectMake(110+200*(i/2), (kTopHeight+119)+(39)*(i%2), WIDTH-130, 1);
|
|
|
line.backgroundColor = [UIColor lightGrayColor];
|
|
line.backgroundColor = [UIColor lightGrayColor];
|
|
|
[self.view addSubview:line];
|
|
[self.view addSubview:line];
|
|
|
}
|
|
}
|