Ver código fonte

1.版本信息页面修改

huangxiaodong 6 meses atrás
pai
commit
134af0e77b

+ 21 - 19
创维盒子/双子星云手机/Class/Set/appUpdate/AboutViewController.m

@@ -142,9 +142,9 @@
     
     //1.4.3 新加一个tableview 显示镜像相关信息
     //用户协议 隐私协议 app当前版本 系统当前版本 系统待更新版本
-    _msgTitleArr = @[NSLocalizedString(@"app_update_use_deal",nil)
-                          ,NSLocalizedString(@"app_update_private",nil)
-                          ,NSLocalizedString(@"app_version_current",nil)
+    _msgTitleArr = @[//NSLocalizedString(@"app_update_use_deal",nil)
+                          //,NSLocalizedString(@"app_update_private",nil),
+                            NSLocalizedString(@"app_version_current",nil)
                           ,NSLocalizedString(@"system_version_current",nil)
                           ,NSLocalizedString(@"asystem_version_wait_update",nil)];
     
@@ -155,7 +155,8 @@
         make.left.mas_equalTo(15.f);
         make.right.mas_equalTo(-15.f);
         make.top.equalTo(_checUpdatekBtn.mas_bottom).offset(25.f);
-        make.height.mas_equalTo(240.f);
+        //make.height.mas_equalTo(240.f);
+        make.height.mas_equalTo(160.f);
     }];
     
 //    UIButton *privateBtn = [UIButton buttonWithType:UIButtonTypeCustom];
@@ -258,20 +259,21 @@
         NSString *title = _msgTitleArr[row];
         cell.titleLabel.text = title;
     
-        if(row == 0 || row ==1){
-            cell.showRightImageType = YES;
-            cell.contentLabel.hidden = YES;
-        }
-        else if(row == 2){
+//        if(row == 0 || row ==1){
+//            cell.showRightImageType = YES;
+//            cell.contentLabel.hidden = YES;
+//        }
+//        else 
+        if(row == 0){
             NSString *vers = [iPhone appVersion];
             [cell.contentLabel setText:[NSString stringWithFormat:@"V%@",vers]];
         }
         else if(_couldphoneSysInfoMod){
             cell.contentLabel.hidden = NO;
-            if (row == 3) {
+            if (row == 1) {
                 cell.contentLabel.text = _couldphoneSysInfoMod.data.hostImgVer;
             }
-            else if(row == 4) {
+            else if(row == 2) {
                 cell.contentLabel.text = _couldphoneSysInfoMod.data.MyNewVersion;
             }
         }
@@ -294,14 +296,14 @@
 
 - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
 {
-    NSInteger row = indexPath.row;
-    
-    if(row == 0){
-        [self ruleBtnClick];
-    }
-    else if(row ==1){
-        [self privateBtnClick];
-    }
+//    NSInteger row = indexPath.row;
+//    
+//    if(row == 0){
+//        [self ruleBtnClick];
+//    }
+//    else if(row ==1){
+//        [self privateBtnClick];
+//    }
 }
 
 - (UIImage *)getAppIcon{

+ 3 - 3
创维盒子/双子星云手机/Class/Set/view/allVersionView.m

@@ -201,9 +201,9 @@
                 NSString *versionFullStr = [NSString stringWithFormat:@"V%@(%@)",vers,buildNumber];
                 
                 //测试
-                if([CloudService rangeOfString:@"hiboxde.armclouding.com"].location == NSNotFound){
-                    versionFullStr = [[NSString alloc] initWithFormat:@"%@_dev",versionFullStr];
-                }
+//                if([CloudService rangeOfString:@"hiboxde.armclouding.com"].location == NSNotFound){
+//                    versionFullStr = [[NSString alloc] initWithFormat:@"%@_dev",versionFullStr];
+//                }
                 
                 cell.detailTextLabel.text = versionFullStr;
             }