Эх сурвалжийг харах

1.修改iOS Apex Driver Detail高度计算。

Pen Li 7 жил өмнө
parent
commit
b290b96310

+ 6 - 6
Redant Drivers/Apex And Drivers/Detail/Model/RADetailLocationModel.m

@@ -38,9 +38,9 @@ static const CGFloat SpaceHeight = 38.0f;
 }
 
 - (void)caculateValueHeight {
-    if (self.location.length == 0) {
-        return;
-    }
+//    if (self.location.length == 0) {
+//        return;
+//    }
     CGFloat w = self.width;
     if (w <= 0) {
         w = CGRectGetWidth([UIScreen mainScreen].bounds);
@@ -50,14 +50,14 @@ static const CGFloat SpaceHeight = 38.0f;
                                          options:(NSStringDrawingUsesLineFragmentOrigin | NSStringDrawingUsesFontLeading)
                                       attributes:@{NSFontAttributeName:[UIFont systemFontOfSize:15.0f]}
                                          context:nil].size.height;
-    CGFloat navBtnHeight = 30.0f;
+    CGFloat navBtnHeight = 70.0f;
     if (h < navBtnHeight) { // navigation button height
         h = navBtnHeight;
     }
     
     _height = h + SpaceHeight;
-    if (_height < 100.0f) {
-        _height = 100.0f;
+    if (_height < 106.0f) {
+        _height = 106.0f;
     }
 }
 

+ 6 - 6
Redant Drivers/Apex And Drivers/Detail/Model/RADetailMapModel.m

@@ -41,9 +41,9 @@ static const CGFloat SpaceHeight = 38.0f;
 }
 
 - (void)caculateValueHeight {
-    if (self.location.length == 0) {
-        return;
-    }
+//    if (self.location.length == 0) {
+//        return;
+//    }
     CGFloat w = self.width;
     if (w <= 0) {
         w = CGRectGetWidth([UIScreen mainScreen].bounds);
@@ -53,14 +53,14 @@ static const CGFloat SpaceHeight = 38.0f;
                                             options:(NSStringDrawingUsesLineFragmentOrigin | NSStringDrawingUsesFontLeading)
                                          attributes:@{NSFontAttributeName:[UIFont systemFontOfSize:15.0f]}
                                             context:nil].size.height;
-    CGFloat navBtnHeight = 30.0f;
+    CGFloat navBtnHeight = 70.0f;
     if (h < navBtnHeight) { // navigation button height
         h = navBtnHeight;
     }
     
     _height = h + SpaceHeight;
-    if (_height < 100.0f) {
-        _height = 100.0f;
+    if (_height < 106.0f) {
+        _height = 106.0f;
     }
 }
 

+ 3 - 3
Redant Drivers/Apex And Drivers/Detail/Model/RADetailMultLineModel.m

@@ -30,9 +30,9 @@ static const CGFloat SpaceHeight = 12.0f;
 }
 
 - (void)caculateValueHeight {
-    if (self.value.length == 0) {
-        return;
-    }
+//    if (self.value.length == 0) {
+//        return;
+//    }
     CGFloat w = self.width;
     if (w <= 0) {
         w = CGRectGetWidth([UIScreen mainScreen].bounds);