|
|
|
@ -62,7 +62,7 @@
@@ -62,7 +62,7 @@
|
|
|
|
|
make.top.equalTo(self.view).offset(iPhoneX_NavHeight+Adapted(50)+0.5); |
|
|
|
|
make.bottom.equalTo(self.view.mas_bottom); |
|
|
|
|
}]; |
|
|
|
|
[self.view addSubview:self.trackMapView]; |
|
|
|
|
|
|
|
|
|
[self.view addSubview:self.topView]; |
|
|
|
|
[self GetTrackInfo]; |
|
|
|
|
|
|
|
|
@ -138,11 +138,25 @@
@@ -138,11 +138,25 @@
|
|
|
|
|
|
|
|
|
|
- (void)mapShowAndHidden:(NSInteger)type |
|
|
|
|
{ |
|
|
|
|
if (type == 1) |
|
|
|
|
{ |
|
|
|
|
[self.view addSubview:self.trackMapView]; |
|
|
|
|
[self.trackMapView loadWithInfoTrack:self.modelListArr]; |
|
|
|
|
} |
|
|
|
|
CGFloat yy = iPhoneX_NavHeight+self.topView.height+0.5; |
|
|
|
|
[UIView animateWithDuration:0.5 animations:^{ |
|
|
|
|
self.trackMapView.frame = CGRectMake(0,type == 1 ? yy : SCREEN_HEIGHT, SCREEN_WIDTH, SCREEN_HEIGHT-yy); |
|
|
|
|
} completion:^(BOOL finished) { |
|
|
|
|
[self.trackMapView topViewShowAndHidden:type]; |
|
|
|
|
if (type == 0) |
|
|
|
|
{ |
|
|
|
|
for(UIView *mapview in [self.view subviews]) |
|
|
|
|
{ |
|
|
|
|
if ([mapview isKindOfClass:[TrackMapView class]]) { |
|
|
|
|
[mapview removeFromSuperview]; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}]; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -170,7 +184,7 @@
@@ -170,7 +184,7 @@
|
|
|
|
|
self.comTable.tableHeaderView = arr.count > 0 ? self.headerView : nil; |
|
|
|
|
self.comTable.tableHeaderView.height = arr.count > 0 ? Adapted(60) : 0; |
|
|
|
|
self.numberLabel.attributedText = [UICommon labelFontSize:arr.count > 0 ? F(@"%ld %@", arr.count,GJText(@"条轨迹")) : @""]; |
|
|
|
|
[self.trackMapView loadWithInfoTrack:self.modelListArr]; |
|
|
|
|
// [self.trackMapView loadWithInfoTrack:self.modelListArr]; |
|
|
|
|
|
|
|
|
|
[self.comTable reloadData]; |
|
|
|
|
self.zx_navRightBtn.hidden = self.modelListArr.count > 0 ? NO : YES; |
|
|
|
|