huangxiaodong 2 år sedan
förälder
incheckning
aa97a3e57f
1 ändrade filer med 15 tillägg och 15 borttagningar
  1. 15 15
      创维盒子/双子星云手机/Class/Set/view/allVersionView.m

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

@@ -6,7 +6,6 @@
 //
 
 #import "allVersionView.h"
-#import "MineViewCell.h"
 
 @interface allVersionView ()<UITableViewDelegate,UITableViewDataSource>
 {
@@ -36,6 +35,11 @@
     NSString *str3 = NSLocalizedString(@"my_set_about_version_tap_app",nil);
     NSString *str4 = NSLocalizedString(@"my_set_about_version_tap_sn",nil);
     
+    [dataArr addObject:str1];
+    [dataArr addObject:str2];
+    [dataArr addObject:str3];
+    [dataArr addObject:str4];
+    
     self.backgroundColor = [UIColor hwColor:@"#000000" alpha:0.6];
     
     _whiteBgView = [[UIView alloc] init];
@@ -46,7 +50,7 @@
     [_whiteBgView mas_makeConstraints:^(MASConstraintMaker *make) {
         make.left.mas_equalTo(20);
         make.right.mas_equalTo(-20);
-        make.height.mas_equalTo(300);
+        make.height.mas_equalTo(2650);
         make.centerY.mas_equalTo(self.center).offset(-20);
     }];
     
@@ -80,7 +84,7 @@
     [self.tableView mas_makeConstraints:^(MASConstraintMaker *make) {
         make.left.mas_equalTo(15);
         make.right.mas_equalTo(-15);
-        make.top.mas_equalTo(versionTipLabel.mas_bottom).offset(10);
+        make.top.mas_equalTo(versionTipLabel.mas_bottom).offset(20);
         make.bottom.mas_equalTo(-16.0);
     }];
 }
@@ -120,29 +124,25 @@
     return dataArr.count;
 }
 
-- (MineViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
+- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
     
     NSInteger row = indexPath.row;
-    static NSString *identifier = @"MineViewCell";
+    static NSString *identifier = @"UITableViewCell";
     
-    MineViewCell * cell =  [tableView dequeueReusableCellWithIdentifier:identifier];
+    UITableViewCell * cell =  [tableView dequeueReusableCellWithIdentifier:identifier];
     cell.selectionStyle = UITableViewCellSelectionStyleNone;
     if (!cell){
-        cell = [[MineViewCell alloc] initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:identifier];
+        cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:identifier];
         [cell setSelectionStyle:UITableViewCellSelectionStyleNone];
         [cell setBackgroundColor:[UIColor clearColor]];
         [cell setAccessoryType:(UITableViewCellAccessoryNone)];
         
-        [cell.bgViewLayer removeFromSuperlayer];
-        [cell.titleLabel2 setHidden:NO];
-        [cell.rightImage setHidden:YES];
-        [cell.mImageView setHidden:YES];
-        [cell.lineView setHidden:YES];
-        [cell.maskSwitch setHidden:YES];
+        cell.textLabel.font = [UIFont systemFontOfSize:12.0];
+        cell.textLabel.textColor =  [UIColor hwColor:@"#666666" alpha:1.0];
     }
   
     if(row < dataArr.count){
-        cell.titleLabel.text = dataArr[row];
+        cell.textLabel.text = dataArr[row];
     }
     
 
@@ -150,6 +150,6 @@
 }
 
 - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
-    return 60;
+    return 40;
 }
 @end