소스 검색

1.设置页面新UI

huangxiaodong 1 년 전
부모
커밋
fd55f8bba0
25개의 변경된 파일690개의 추가작업 그리고 366개의 파일을 삭제
  1. 6 0
      创维盒子/双子星云手机/Assets.xcassets/Set/fileSet/Contents.json
  2. 22 0
      创维盒子/双子星云手机/Assets.xcassets/Set/fileSet/icon_file_backups.imageset/Contents.json
  3. BIN
      创维盒子/双子星云手机/Assets.xcassets/Set/fileSet/icon_file_backups.imageset/icon_file_backups@2x.png
  4. BIN
      创维盒子/双子星云手机/Assets.xcassets/Set/fileSet/icon_file_backups.imageset/icon_file_backups@3x.png
  5. 22 0
      创维盒子/双子星云手机/Assets.xcassets/Set/fileSet/icon_file_file.imageset/Contents.json
  6. BIN
      创维盒子/双子星云手机/Assets.xcassets/Set/fileSet/icon_file_file.imageset/icon_file_file@2x.png
  7. BIN
      创维盒子/双子星云手机/Assets.xcassets/Set/fileSet/icon_file_file.imageset/icon_file_file@3x.png
  8. 22 0
      创维盒子/双子星云手机/Assets.xcassets/Set/fileSet/icon_file_image.imageset/Contents.json
  9. BIN
      创维盒子/双子星云手机/Assets.xcassets/Set/fileSet/icon_file_image.imageset/icon_file_image@2x.png
  10. BIN
      创维盒子/双子星云手机/Assets.xcassets/Set/fileSet/icon_file_image.imageset/icon_file_image@3x.png
  11. 22 0
      创维盒子/双子星云手机/Assets.xcassets/Set/fileSet/icon_file_music.imageset/Contents.json
  12. BIN
      创维盒子/双子星云手机/Assets.xcassets/Set/fileSet/icon_file_music.imageset/icon_file_music@2x.png
  13. BIN
      创维盒子/双子星云手机/Assets.xcassets/Set/fileSet/icon_file_music.imageset/icon_file_music@3x.png
  14. 22 0
      创维盒子/双子星云手机/Assets.xcassets/Set/fileSet/icon_file_setting.imageset/Contents.json
  15. BIN
      创维盒子/双子星云手机/Assets.xcassets/Set/fileSet/icon_file_setting.imageset/icon_file_setting@2x.png
  16. BIN
      创维盒子/双子星云手机/Assets.xcassets/Set/fileSet/icon_file_setting.imageset/icon_file_setting@3x.png
  17. 22 0
      创维盒子/双子星云手机/Assets.xcassets/Set/fileSet/icon_file_share.imageset/Contents.json
  18. BIN
      创维盒子/双子星云手机/Assets.xcassets/Set/fileSet/icon_file_share.imageset/icon_file_share@2x.png
  19. BIN
      创维盒子/双子星云手机/Assets.xcassets/Set/fileSet/icon_file_share.imageset/icon_file_share@3x.png
  20. 22 0
      创维盒子/双子星云手机/Assets.xcassets/Set/fileSet/icon_file_video.imageset/Contents.json
  21. BIN
      创维盒子/双子星云手机/Assets.xcassets/Set/fileSet/icon_file_video.imageset/icon_file_video@2x.png
  22. BIN
      创维盒子/双子星云手机/Assets.xcassets/Set/fileSet/icon_file_video.imageset/icon_file_video@3x.png
  23. 5 5
      创维盒子/双子星云手机/Class/Set/MySetViewController.m
  24. 520 361
      创维盒子/双子星云手机/Class/Set/view/mySetHeadView.m
  25. 5 0
      创维盒子/双子星云手机/zh-Hans.lproj/Localizable.strings

+ 6 - 0
创维盒子/双子星云手机/Assets.xcassets/Set/fileSet/Contents.json

@@ -0,0 +1,6 @@
+{
+  "info" : {
+    "author" : "xcode",
+    "version" : 1
+  }
+}

+ 22 - 0
创维盒子/双子星云手机/Assets.xcassets/Set/fileSet/icon_file_backups.imageset/Contents.json

@@ -0,0 +1,22 @@
+{
+  "images" : [
+    {
+      "idiom" : "universal",
+      "scale" : "1x"
+    },
+    {
+      "filename" : "icon_file_backups@2x.png",
+      "idiom" : "universal",
+      "scale" : "2x"
+    },
+    {
+      "filename" : "icon_file_backups@3x.png",
+      "idiom" : "universal",
+      "scale" : "3x"
+    }
+  ],
+  "info" : {
+    "author" : "xcode",
+    "version" : 1
+  }
+}

BIN
创维盒子/双子星云手机/Assets.xcassets/Set/fileSet/icon_file_backups.imageset/icon_file_backups@2x.png


BIN
创维盒子/双子星云手机/Assets.xcassets/Set/fileSet/icon_file_backups.imageset/icon_file_backups@3x.png


+ 22 - 0
创维盒子/双子星云手机/Assets.xcassets/Set/fileSet/icon_file_file.imageset/Contents.json

@@ -0,0 +1,22 @@
+{
+  "images" : [
+    {
+      "idiom" : "universal",
+      "scale" : "1x"
+    },
+    {
+      "filename" : "icon_file_file@2x.png",
+      "idiom" : "universal",
+      "scale" : "2x"
+    },
+    {
+      "filename" : "icon_file_file@3x.png",
+      "idiom" : "universal",
+      "scale" : "3x"
+    }
+  ],
+  "info" : {
+    "author" : "xcode",
+    "version" : 1
+  }
+}

BIN
创维盒子/双子星云手机/Assets.xcassets/Set/fileSet/icon_file_file.imageset/icon_file_file@2x.png


BIN
创维盒子/双子星云手机/Assets.xcassets/Set/fileSet/icon_file_file.imageset/icon_file_file@3x.png


+ 22 - 0
创维盒子/双子星云手机/Assets.xcassets/Set/fileSet/icon_file_image.imageset/Contents.json

@@ -0,0 +1,22 @@
+{
+  "images" : [
+    {
+      "idiom" : "universal",
+      "scale" : "1x"
+    },
+    {
+      "filename" : "icon_file_image@2x.png",
+      "idiom" : "universal",
+      "scale" : "2x"
+    },
+    {
+      "filename" : "icon_file_image@3x.png",
+      "idiom" : "universal",
+      "scale" : "3x"
+    }
+  ],
+  "info" : {
+    "author" : "xcode",
+    "version" : 1
+  }
+}

BIN
创维盒子/双子星云手机/Assets.xcassets/Set/fileSet/icon_file_image.imageset/icon_file_image@2x.png


BIN
创维盒子/双子星云手机/Assets.xcassets/Set/fileSet/icon_file_image.imageset/icon_file_image@3x.png


+ 22 - 0
创维盒子/双子星云手机/Assets.xcassets/Set/fileSet/icon_file_music.imageset/Contents.json

@@ -0,0 +1,22 @@
+{
+  "images" : [
+    {
+      "idiom" : "universal",
+      "scale" : "1x"
+    },
+    {
+      "filename" : "icon_file_music@2x.png",
+      "idiom" : "universal",
+      "scale" : "2x"
+    },
+    {
+      "filename" : "icon_file_music@3x.png",
+      "idiom" : "universal",
+      "scale" : "3x"
+    }
+  ],
+  "info" : {
+    "author" : "xcode",
+    "version" : 1
+  }
+}

BIN
创维盒子/双子星云手机/Assets.xcassets/Set/fileSet/icon_file_music.imageset/icon_file_music@2x.png


BIN
创维盒子/双子星云手机/Assets.xcassets/Set/fileSet/icon_file_music.imageset/icon_file_music@3x.png


+ 22 - 0
创维盒子/双子星云手机/Assets.xcassets/Set/fileSet/icon_file_setting.imageset/Contents.json

@@ -0,0 +1,22 @@
+{
+  "images" : [
+    {
+      "idiom" : "universal",
+      "scale" : "1x"
+    },
+    {
+      "filename" : "icon_file_setting@2x.png",
+      "idiom" : "universal",
+      "scale" : "2x"
+    },
+    {
+      "filename" : "icon_file_setting@3x.png",
+      "idiom" : "universal",
+      "scale" : "3x"
+    }
+  ],
+  "info" : {
+    "author" : "xcode",
+    "version" : 1
+  }
+}

BIN
创维盒子/双子星云手机/Assets.xcassets/Set/fileSet/icon_file_setting.imageset/icon_file_setting@2x.png


BIN
创维盒子/双子星云手机/Assets.xcassets/Set/fileSet/icon_file_setting.imageset/icon_file_setting@3x.png


+ 22 - 0
创维盒子/双子星云手机/Assets.xcassets/Set/fileSet/icon_file_share.imageset/Contents.json

@@ -0,0 +1,22 @@
+{
+  "images" : [
+    {
+      "idiom" : "universal",
+      "scale" : "1x"
+    },
+    {
+      "filename" : "icon_file_share@2x.png",
+      "idiom" : "universal",
+      "scale" : "2x"
+    },
+    {
+      "filename" : "icon_file_share@3x.png",
+      "idiom" : "universal",
+      "scale" : "3x"
+    }
+  ],
+  "info" : {
+    "author" : "xcode",
+    "version" : 1
+  }
+}

BIN
创维盒子/双子星云手机/Assets.xcassets/Set/fileSet/icon_file_share.imageset/icon_file_share@2x.png


BIN
创维盒子/双子星云手机/Assets.xcassets/Set/fileSet/icon_file_share.imageset/icon_file_share@3x.png


+ 22 - 0
创维盒子/双子星云手机/Assets.xcassets/Set/fileSet/icon_file_video.imageset/Contents.json

@@ -0,0 +1,22 @@
+{
+  "images" : [
+    {
+      "idiom" : "universal",
+      "scale" : "1x"
+    },
+    {
+      "filename" : "icon_file_video@2x.png",
+      "idiom" : "universal",
+      "scale" : "2x"
+    },
+    {
+      "filename" : "icon_file_video@3x.png",
+      "idiom" : "universal",
+      "scale" : "3x"
+    }
+  ],
+  "info" : {
+    "author" : "xcode",
+    "version" : 1
+  }
+}

BIN
创维盒子/双子星云手机/Assets.xcassets/Set/fileSet/icon_file_video.imageset/icon_file_video@2x.png


BIN
创维盒子/双子星云手机/Assets.xcassets/Set/fileSet/icon_file_video.imageset/icon_file_video@3x.png


+ 5 - 5
创维盒子/双子星云手机/Class/Set/MySetViewController.m

@@ -130,11 +130,11 @@
 - (mySetHeadView *)customTableHeadView{
     
     if(!_customTableHeadView){
-        CGFloat PrivacyBgW = SCREEN_W - 20;
-        CGFloat PrivacyBgH = 116.0 * PrivacyBgW / (345.0);
-        
-        CGFloat totalHeight = 10 + PrivacyBgH + (110+15) + (110+15)+(135+ 88 + 15);
-        
+//        CGFloat PrivacyBgW = SCREEN_W - 20;
+//        CGFloat PrivacyBgH = 116.0 * PrivacyBgW / (345.0);
+//        
+//        CGFloat totalHeight = 10 + PrivacyBgH + (110+15) + (110+15)+(135+ 88 + 15);
+        CGFloat totalHeight = 10 + 220 + 25 + 220 +15;
 
         _customTableHeadView = [[mySetHeadView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_W, totalHeight)];
 

+ 520 - 361
创维盒子/双子星云手机/Class/Set/view/mySetHeadView.m

@@ -31,97 +31,6 @@
     [self setBackgroundColor:[UIColor hwColor:@"#F5F7FA" alpha:1.0]];
     //self.backgroundColor = [UIColor redColor];
     
-    //setting_Privacy_bg
-    UIImageView *PrivacyBg = [[UIImageView alloc] init];
-    PrivacyBg.image = [UIImage imageNamed:@"setting_Privacy_bg"];
-    //PrivacyBg.contentMode = UIViewContentModeScaleAspectFit;
-    PrivacyBg.userInteractionEnabled = YES;
-    [self addSubview:PrivacyBg];
-    //PrivacyBg.backgroundColor = [UIColor greenColor];
-    
-    CGFloat PrivacyBgW = SCREEN_W - 20;
-    CGFloat PrivacyBgH = 116.0 * PrivacyBgW / (345.0);
-    
-    [PrivacyBg mas_makeConstraints:^(MASConstraintMaker *make) {
-        make.left.mas_equalTo(10);
-        make.top.mas_equalTo(10);
-        make.width.mas_equalTo(PrivacyBgW);
-        make.height.mas_equalTo(PrivacyBgH);
-    }];
-    
-    UILabel *PrivacyTitleLabel = [[UILabel alloc] init];
-    PrivacyTitleLabel.text = NSLocalizedString(@"my_set_Privacy_Model",nil) ;
-    PrivacyTitleLabel.font = [UIFont boldSystemFontOfSize:16.0];
-    PrivacyTitleLabel.textColor = [UIColor hwColor:@"0A132B" alpha:1.0];
-    [PrivacyBg addSubview:PrivacyTitleLabel];
-
-    [PrivacyTitleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
-        make.left.mas_equalTo(10);
-        make.top.mas_equalTo(15);
-        make.width.mas_equalTo(150);
-        make.height.mas_equalTo(20);
-    }];
-    
-    UIButton *setPrivacyBut = [[UIButton alloc] init];
-    
-    // gradient
-    CAGradientLayer *gl = [CAGradientLayer layer];
-    gl.frame = CGRectMake(0,0,80.f,32.f);
-    gl.startPoint = CGPointMake(0, 0.5);
-    gl.endPoint = CGPointMake(1, 0.5);
-    gl.colors = @[(__bridge id)HW0CDEFDColor.CGColor, (__bridge id)HW058DFBColor.CGColor];
-    gl.locations = @[@(0), @(1.0f)];
-
-    [setPrivacyBut.layer addSublayer:gl];
-    
-    setPrivacyBut.tag = 4;
-    [setPrivacyBut addTarget:self action:@selector(didClickButFun:) forControlEvents:UIControlEventTouchUpInside];
-    setPrivacyBut.layer.cornerRadius = 16.0;
-    setPrivacyBut.layer.masksToBounds = YES;
-    [setPrivacyBut setTitle:NSLocalizedString(@"set_Privacy_button_title",nil) forState:UIControlStateNormal];
-    setPrivacyBut.titleLabel.font = [UIFont systemFontOfSize:12.0];
-    [PrivacyBg addSubview:setPrivacyBut];
-
-    [setPrivacyBut mas_makeConstraints:^(MASConstraintMaker *make) {
-        make.right.mas_equalTo(-10);
-        make.top.mas_equalTo(10);
-        make.width.mas_equalTo(80);
-        make.height.mas_equalTo(32);
-    }];
-    
-    UILabel *PrivacyTipLabel = [[UILabel alloc] init];
-    PrivacyTipLabel.text = NSLocalizedString(@"set_Privacy_Tip",nil) ;
-    PrivacyTipLabel.font = [UIFont systemFontOfSize:14.0];
-    PrivacyTipLabel.textColor = [UIColor hwColor:@"#01B7EA" alpha:1.0];
-    [PrivacyBg addSubview:PrivacyTipLabel];
-
-    [PrivacyTipLabel mas_makeConstraints:^(MASConstraintMaker *make) {
-        make.left.mas_equalTo(10);
-        make.top.mas_equalTo(PrivacyTitleLabel.mas_bottom).offset(10);
-        make.right.mas_equalTo(0);
-        make.height.mas_equalTo(20);
-    }];
-    
-    UILabel *PrivacyTipLabel2 = [[UILabel alloc] init];
-    PrivacyTipLabel2.text = NSLocalizedString(@"my_set_Privacy_Mode_tip1",nil) ;
-    //PrivacyTipLabel2.font = [UIFont systemFontOfSize:12.0];
-    PrivacyTipLabel2.textColor = [UIColor hwColor:@"#6A6A6A" alpha:1.0];
-    PrivacyTipLabel2.numberOfLines = 0;
-    [PrivacyBg addSubview:PrivacyTipLabel2];
-    PrivacyTipLabel2.adjustsFontSizeToFitWidth = YES;
-    
-    //PrivacyTipLabel2.backgroundColor = [UIColor redColor];
-    //CGFloat PrivacyTipLabel2height = PrivacyBgH *(0.5);
-    
-    [PrivacyTipLabel2 mas_makeConstraints:^(MASConstraintMaker *make) {
-        make.left.mas_equalTo(10);
-        //make.top.mas_equalTo(PrivacyTipLabel.mas_bottom).offset(15);
-        make.right.mas_equalTo(-10);
-        make.height.mas_equalTo(30);
-        make.bottom.mas_equalTo(-10);
-    }];
-    
-    
     //文件上传
     UIView *fileUploadBgView = [[UIView alloc] init];
     fileUploadBgView.backgroundColor = [UIColor whiteColor];
@@ -130,9 +39,9 @@
     
     [fileUploadBgView mas_makeConstraints:^(MASConstraintMaker *make) {
         make.left.mas_equalTo(10);
-        make.top.mas_equalTo(PrivacyBg.mas_bottom).offset(15);
+        make.top.mas_equalTo(10);
         make.right.mas_equalTo(-10);
-        make.height.mas_equalTo(110);
+        make.height.mas_equalTo(220);
     }];
     
     UILabel *titleLabel = [[UILabel alloc] init];
@@ -148,248 +57,58 @@
         make.height.mas_equalTo(20);
     }];
 
-    //上传记录
-    UIImageView *arrowImageView = [[UIImageView alloc] init];
-    arrowImageView.image = [UIImage imageNamed:@"cell_right_access"];
-    [fileUploadBgView addSubview:arrowImageView];
-
-    [arrowImageView mas_makeConstraints:^(MASConstraintMaker *make) {
-        make.right.mas_equalTo(-10);
-        make.top.mas_equalTo(10);
-        make.width.mas_equalTo(20);
-        make.height.mas_equalTo(20);
-    }];
-
-    UILabel *rightLabel = [[UILabel alloc] init];
-    rightLabel.text = NSLocalizedString(@"set_upload_download_tip",nil) ;
-    rightLabel.font = [UIFont systemFontOfSize:14.0];
-    rightLabel.textColor = [UIColor hwColor:@"#959799" alpha:1.0];
-    rightLabel.textAlignment = NSTextAlignmentRight;
-    [fileUploadBgView addSubview:rightLabel];
-    
-    [rightLabel mas_makeConstraints:^(MASConstraintMaker *make) {
-        make.right.mas_equalTo(arrowImageView.mas_left).offset(-2);
-        make.top.mas_equalTo(10);
-        make.width.mas_equalTo(200);
-        make.height.mas_equalTo(20);
-    }];
-
-    UIButton *recordBut = [[UIButton alloc] init];
-    //recordBut.backgroundColor = [UIColor greenColor];
-    recordBut.tag = 1;
-    [recordBut addTarget:self action:@selector(didClickButFun:) forControlEvents:UIControlEventTouchUpInside];
-    [fileUploadBgView addSubview:recordBut];
-    
-    [recordBut mas_makeConstraints:^(MASConstraintMaker *make) {
-        make.right.mas_equalTo(0);
-        make.top.mas_equalTo(0);
-        make.width.mas_equalTo(150);
-        make.height.mas_equalTo(40);
-    }];
-
-//    arrowImageView.hidden = YES;
-//    rightLabel.hidden = YES;
-//    recordBut.hidden = YES;
-    
-    //图片上传
-    NSString* curImgUploadStr = [[NSString alloc] initWithFormat:@"%@ %@",@"  ",NSLocalizedString(@"my_set_no_image_upload",nil)];
-    UIButton *imageUploadBut = [[UIButton alloc] init];
-    [imageUploadBut setImage:[UIImage imageNamed:@"icon_image_upload"] forState:UIControlStateNormal];
-    [imageUploadBut setTitle:curImgUploadStr forState:UIControlStateNormal];
-    imageUploadBut.backgroundColor = [UIColor hwColor:@"#00D1C1" alpha:0.1];
-    imageUploadBut.layer.cornerRadius = 4;
-    [imageUploadBut setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
-    imageUploadBut.titleLabel.font = [UIFont systemFontOfSize:13.0];
-    imageUploadBut.tag = 2;
-    [imageUploadBut addTarget:self action:@selector(didClickButFun:) forControlEvents:UIControlEventTouchUpInside];
-    [fileUploadBgView addSubview:imageUploadBut];
-
-    [imageUploadBut mas_makeConstraints:^(MASConstraintMaker *make) {
-        make.left.mas_equalTo(10);
-        make.right.mas_equalTo(self.mas_centerX).offset(-10);
-        make.bottom.mas_equalTo(-10);
-        make.height.mas_equalTo(48);
-    }];
-
-    //视频上传
-    NSString* curVidelUploadStr = [[NSString alloc] initWithFormat:@"%@ %@",@"  ",NSLocalizedString(@"my_set_no_video_upload",nil)];
-    UIButton *videoUploadBut = [[UIButton alloc] init];
-    [videoUploadBut setImage:[UIImage imageNamed:@"icon_video_upload"] forState:UIControlStateNormal];
-    [videoUploadBut setTitle:curVidelUploadStr forState:UIControlStateNormal];
-    videoUploadBut.backgroundColor = [UIColor hwColor:@"#00D8FF" alpha:0.1];
-    videoUploadBut.layer.cornerRadius = 4;
-    [videoUploadBut setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
-    videoUploadBut.titleLabel.font = [UIFont systemFontOfSize:13.0];
-    videoUploadBut.tag = 3;
-    [videoUploadBut addTarget:self action:@selector(didClickButFun:) forControlEvents:UIControlEventTouchUpInside];
-    [fileUploadBgView addSubview:videoUploadBut];
-
-    [videoUploadBut mas_makeConstraints:^(MASConstraintMaker *make) {
-        make.right.mas_equalTo(-10);
-        make.left.mas_equalTo(self.mas_centerX).offset(10);
-        make.bottom.mas_equalTo(-10);
-        make.height.mas_equalTo(48);
-    }];
-    
-    
-    //文件备份
-    UIView *fileBackupsBgView = [[UIView alloc] init];
-    fileBackupsBgView.backgroundColor = [UIColor whiteColor];
-    fileBackupsBgView.layer.cornerRadius = 8;
-    [self addSubview:fileBackupsBgView];
-    
-    [fileBackupsBgView mas_makeConstraints:^(MASConstraintMaker *make) {
-        make.left.mas_equalTo(10);
-        make.top.mas_equalTo(fileUploadBgView.mas_bottom).offset(15);
-        make.right.mas_equalTo(-10);
-        make.height.mas_equalTo(110);
-    }];
-    
-    UILabel *BackupsTitleLabel = [[UILabel alloc] init];
-    BackupsTitleLabel.text = NSLocalizedString(@"set_Privacy_title",nil) ;
-    BackupsTitleLabel.font = [UIFont boldSystemFontOfSize:16.0];
-    BackupsTitleLabel.textColor = [UIColor blackColor];
-    [fileBackupsBgView addSubview:BackupsTitleLabel];
-
-    [BackupsTitleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
-        make.left.mas_equalTo(10);
-        make.top.mas_equalTo(10);
-        make.width.mas_equalTo(180);
-        make.height.mas_equalTo(20);
-    }];
-
-    //
-    UIImageView *arrowImageView2 = [[UIImageView alloc] init];
-    arrowImageView2.image = [UIImage imageNamed:@"cell_right_access"];
-    [fileBackupsBgView addSubview:arrowImageView2];
-
-    [arrowImageView2 mas_makeConstraints:^(MASConstraintMaker *make) {
-        make.right.mas_equalTo(-10);
-        make.top.mas_equalTo(10);
-        make.width.mas_equalTo(20);
-        make.height.mas_equalTo(20);
-    }];
-    
-    NSString *BackupsRightTitle = NSLocalizedString(@"set_Privacy_right_tip",nil);
-    CGFloat BackupsRightW = [BackupsRightTitle boundingRectWithSize:CGSizeMake(200, 20) options:(NSStringDrawingUsesLineFragmentOrigin) attributes:@{NSFontAttributeName:[UIFont systemFontOfSize:14.0]} context:nil].size.width;
-    BackupsRightW += 5;
-    
-    UILabel *BackupsRightLabel = [[UILabel alloc] init];
-    BackupsRightLabel.text =  BackupsRightTitle;
-    BackupsRightLabel.font = [UIFont systemFontOfSize:14.0];
-    BackupsRightLabel.textColor = [UIColor hwColor:@"#959799" alpha:1.0];
-    BackupsRightLabel.textAlignment = NSTextAlignmentRight;
-    [fileBackupsBgView addSubview:BackupsRightLabel];
-
-    [BackupsRightLabel mas_makeConstraints:^(MASConstraintMaker *make) {
-        make.right.mas_equalTo(arrowImageView.mas_left).offset(-2);
-        make.top.mas_equalTo(10);
-        make.width.mas_equalTo(BackupsRightW);
-        make.height.mas_equalTo(20);
-    }];
-
-    UIButton *BackupsSetBut = [[UIButton alloc] init];
-    //BackupsSetBut.backgroundColor = [UIColor greenColor];
-    BackupsSetBut.tag = 5;
-    [BackupsSetBut addTarget:self action:@selector(didClickButFun:) forControlEvents:UIControlEventTouchUpInside];
-    [fileBackupsBgView addSubview:BackupsSetBut];
-
-    [BackupsSetBut mas_makeConstraints:^(MASConstraintMaker *make) {
-        make.right.mas_equalTo(0);
-        make.top.mas_equalTo(0);
-        make.left.mas_equalTo(BackupsRightLabel.mas_left);
-        make.height.mas_equalTo(40);
-    }];
+    NSArray *fileTitleArr = @[NSLocalizedString(@"my_set_no_image_upload",nil),
+                          NSLocalizedString(@"my_set_no_video_upload",nil),
+                          NSLocalizedString(@"my_set_no_music",nil),
+                          NSLocalizedString(@"my_set_no_file",nil),
+                          NSLocalizedString(@"my_set_no_share",nil),
+                          NSLocalizedString(@"my_set_no_File_backups",nil),
+                          NSLocalizedString(@"more_set",nil)];
     
-//    arrowImageView2.hidden = YES;
-//    BackupsRightLabel.hidden = YES;
-//    BackupsSetBut.hidden = YES;
+    NSArray *fileImageArr = @[@"icon_file_image",
+                              @"icon_file_video",
+                              @"icon_file_music",
+                              @"icon_file_file",
+                              @"icon_file_share",
+                              @"icon_file_backups",
+                              @"icon_file_setting"];
     
-    UIButton *BackupsEyeBut = [[UIButton alloc] init];
-    //BackupsEyeBut.backgroundColor = [UIColor greenColor];
-    [BackupsEyeBut setImage:[UIImage imageNamed:@"common_eye_open"] forState:UIControlStateNormal];
-    [BackupsEyeBut setImage:[UIImage imageNamed:@"common_eye_close"] forState:UIControlStateSelected];
-    BackupsEyeBut.tag = 6;
-    [BackupsEyeBut addTarget:self action:@selector(didClickButFun:) forControlEvents:UIControlEventTouchUpInside];
-    [fileBackupsBgView addSubview:BackupsEyeBut];
-
-    [BackupsEyeBut mas_makeConstraints:^(MASConstraintMaker *make) {
-        make.right.mas_equalTo(BackupsSetBut.mas_left).offset(0);
-        make.centerY.mas_equalTo(BackupsRightLabel.mas_centerY);
-        make.width.mas_equalTo(40);
-        make.height.mas_equalTo(40);
-    }];
     
-    BackupsEyeBut.hidden = YES;
-    
-    imageBackupsBgView = [[UIView alloc] init];
-    imageBackupsBgView.backgroundColor = [UIColor hwColor:@"#F9F9F9" alpha:1.0];
-    imageBackupsBgView.layer.cornerRadius = 8;
-    [fileBackupsBgView addSubview:imageBackupsBgView];
-    
-    [imageBackupsBgView mas_makeConstraints:^(MASConstraintMaker *make) {
-        make.right.mas_equalTo(-10);
-        make.left.mas_equalTo(10);
-        make.bottom.mas_equalTo(-10);
-        make.height.mas_equalTo(56);
-    }];
-    
-    UIImageView *backupsImageV = [[UIImageView alloc] init];
-    backupsImageV.image = [UIImage imageNamed:@"image_backups_icon"];
-    [imageBackupsBgView addSubview:backupsImageV];
-    
-    [backupsImageV mas_makeConstraints:^(MASConstraintMaker *make) {
-        make.centerY.mas_equalTo(0);
-        make.left.mas_equalTo(10);
-        make.width.mas_equalTo(28);
-        make.height.mas_equalTo(28);
-    }];
-    
-    UILabel *imageBackupsTitleLabel = [[UILabel alloc] init];
-    imageBackupsTitleLabel.text = NSLocalizedString(@"set_Privacy_title_image",nil) ;
-    imageBackupsTitleLabel.font = [UIFont systemFontOfSize:14.0];
-    imageBackupsTitleLabel.textColor = [UIColor blackColor];
-    [imageBackupsBgView addSubview:imageBackupsTitleLabel];
-
-    [imageBackupsTitleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
-        make.centerY.mas_equalTo(-10);
-        make.left.mas_equalTo(backupsImageV.mas_right).offset(10);
-        make.right.mas_equalTo(-(10+60+10));
-        make.height.mas_equalTo(20);
-    }];
-    
-    _imageBackupsLabel = [[UILabel alloc] init];
-    //_imageBackupsLabel.text = NSLocalizedString(@"set_Privacy_title_image_open",nil) ;
-    _imageBackupsLabel.font = [UIFont systemFontOfSize:12.0];
-    _imageBackupsLabel.textColor = [UIColor hwColor:@"#6A6A6A" alpha:1.0];
-    [imageBackupsBgView addSubview:_imageBackupsLabel];
-
-    [_imageBackupsLabel mas_makeConstraints:^(MASConstraintMaker *make) {
-        make.centerY.mas_equalTo(10);
-        make.left.mas_equalTo(backupsImageV.mas_right).offset(10);
-        make.right.mas_equalTo(-(10+60+10));
-        make.height.mas_equalTo(20);
-    }];
+    CGFloat butWidth = (SCREEN_W -20)/5;
+    CGFloat butHeight = 88.0;
     
-    _imageBackupsButton = [[UIButton alloc] init];
-    _imageBackupsButton.backgroundColor = [UIColor hwColor:@"#DCF4FB" alpha:1.0];
-    _imageBackupsButton.tag = 7;
-    [_imageBackupsButton addTarget:self action:@selector(didClickButFun:) forControlEvents:UIControlEventTouchUpInside];
-    _imageBackupsButton.layer.cornerRadius = 12.0;
-    _imageBackupsButton.layer.masksToBounds = YES;
-    [_imageBackupsButton setTitle:NSLocalizedString(@"common_open",nil) forState:UIControlStateNormal];
-    [_imageBackupsButton setTitle:NSLocalizedString(@"common_close",nil) forState:UIControlStateSelected];
-    [_imageBackupsButton setTitleColor:[UIColor hwColor:@"#01B7EA" alpha:1.0] forState:UIControlStateNormal];
-    _imageBackupsButton.titleLabel.font = [UIFont systemFontOfSize:12.0];
-    [imageBackupsBgView addSubview:_imageBackupsButton];
+    for (int i=0; i<fileTitleArr.count; i++) {
+        
+        UIButton *curButton = [UIButton buttonWithType:UIButtonTypeCustom];
+        curButton.tag = 100 + i;
+        
+        [curButton setImage:[UIImage imageNamed:fileImageArr[i]] forState:UIControlStateNormal];
+        [curButton setTitle:fileTitleArr[i] forState:UIControlStateNormal];
+        [curButton setTitleColor:[UIColor hwColor:@"#0A132B" alpha:1.0] forState:UIControlStateNormal];
+        curButton.titleLabel.font = [UIFont systemFontOfSize:12.0];
+        
+        [curButton addTarget:self action:@selector(didClickButFun:) forControlEvents:UIControlEventTouchUpInside];
+        [fileUploadBgView addSubview:curButton];
+        //curButton.backgroundColor = [UIColor redColor];
 
-    [_imageBackupsButton mas_makeConstraints:^(MASConstraintMaker *make) {
-        make.right.mas_equalTo(-10);
-        make.centerY.mas_equalTo(0);
-        make.width.mas_equalTo(60);
-        make.height.mas_equalTo(24);
-    }];
-    
+        [curButton mas_makeConstraints:^(MASConstraintMaker *make) {
+            make.left.mas_equalTo(butWidth*(i%5));
+            make.top.mas_equalTo(titleLabel.mas_bottom).offset((i/5) * (butHeight));
+            make.width.mas_equalTo(butWidth);
+            make.height.mas_equalTo(butHeight);
+        }];
+        
+        CGFloat titleOffset = 10.0;
+        
+        [curButton setTitleEdgeInsets:UIEdgeInsetsMake(curButton.imageView.frame.size.height+5,-curButton.imageView.frame.size.width, 0.0,0.0)];
+        [curButton setImageEdgeInsets:UIEdgeInsetsMake(-curButton.bounds.size.width/4+5, curButton.bounds.size.width/4-titleOffset, curButton.titleLabel.bounds.size.height, -curButton.bounds.size.width/4)];
+        
+//
+//        curImageV.backgroundColor = [UIColor orangeColor];
+        
+        
+    }
+   
     
     //其他功能
     UIView *otherBgView = [[UIView alloc] init];
@@ -399,7 +118,7 @@
     
     [otherBgView mas_makeConstraints:^(MASConstraintMaker *make) {
         make.left.mas_equalTo(10);
-        make.top.mas_equalTo(fileBackupsBgView.mas_bottom).offset(15);
+        make.top.mas_equalTo(fileUploadBgView.mas_bottom).offset(25);
         make.right.mas_equalTo(-10);
         make.height.mas_equalTo(135 + 88);
     }];
@@ -430,8 +149,9 @@
                           @"app_update",@"app_clear_cache"];
     
     //CGFloat butWidth = (SCREEN_W -20)/titleArr.count;
-    CGFloat butWidth = (SCREEN_W -20)/5;
-    CGFloat butHeight = 88.0;
+    
+//    CGFloat butWidth = (SCREEN_W -20)/5;
+//    CGFloat butHeight = 88.0;
     
     for (int i=0; i<titleArr.count; i++) {
         
@@ -459,40 +179,479 @@
         [curButton setTitleEdgeInsets:UIEdgeInsetsMake(curButton.imageView.frame.size.height+5,-curButton.imageView.frame.size.width, 0.0,0.0)];
         [curButton setImageEdgeInsets:UIEdgeInsetsMake(-curButton.bounds.size.width/4+5, curButton.bounds.size.width/4-titleOffset, curButton.titleLabel.bounds.size.height, -curButton.bounds.size.width/4)];
         
+//
+//        curImageV.backgroundColor = [UIColor orangeColor];
         
-//        UILabel *curlab = [[UILabel alloc] init];
-//        curlab.text = titleArr[i];
-//        curlab.font = [UIFont systemFontOfSize:12.0];
-//        curlab.textColor = [UIColor hwColor:@"#0A132B" alpha:1.0];
-//        curlab.numberOfLines = 0;
-//        curlab.textAlignment = NSTextAlignmentCenter;
-//        [otherBgView addSubview:curlab];
-//        
-//        [curlab mas_makeConstraints:^(MASConstraintMaker *make) {
-//            make.left.mas_equalTo(butWidth);//* (i%5)
-//            make.bottom.mas_equalTo(-10);
-//            make.width.mas_equalTo(butWidth);
-//            make.height.mas_equalTo(30); //+ (i/5) * (butHeight + 12.0)
-//        }];
-//        curButton.backgroundColor = [UIColor greenColor];
         
-//        UIButton *curImageV = [[UIButton alloc] init];
-//        curImageV.userInteractionEnabled = NO;
-//        [curImageV setImage:[UIImage imageNamed:imageArr[i]] forState:UIControlStateNormal];;
-//        [otherBgView addSubview:curImageV];
+    }
+}
+
+//- (void)drawAnyView{
+//    [self setBackgroundColor:[UIColor hwColor:@"#F5F7FA" alpha:1.0]];
+//    //self.backgroundColor = [UIColor redColor];
+//    
+//    //setting_Privacy_bg
+//    UIImageView *PrivacyBg = [[UIImageView alloc] init];
+//    PrivacyBg.image = [UIImage imageNamed:@"setting_Privacy_bg"];
+//    //PrivacyBg.contentMode = UIViewContentModeScaleAspectFit;
+//    PrivacyBg.userInteractionEnabled = YES;
+//    [self addSubview:PrivacyBg];
+//    //PrivacyBg.backgroundColor = [UIColor greenColor];
+//    
+//    CGFloat PrivacyBgW = SCREEN_W - 20;
+//    CGFloat PrivacyBgH = 116.0 * PrivacyBgW / (345.0);
+//    
+//    [PrivacyBg mas_makeConstraints:^(MASConstraintMaker *make) {
+//        make.left.mas_equalTo(10);
+//        make.top.mas_equalTo(10);
+//        make.width.mas_equalTo(PrivacyBgW);
+//        make.height.mas_equalTo(PrivacyBgH);
+//    }];
+//    
+//    UILabel *PrivacyTitleLabel = [[UILabel alloc] init];
+//    PrivacyTitleLabel.text = NSLocalizedString(@"my_set_Privacy_Model",nil) ;
+//    PrivacyTitleLabel.font = [UIFont boldSystemFontOfSize:16.0];
+//    PrivacyTitleLabel.textColor = [UIColor hwColor:@"0A132B" alpha:1.0];
+//    [PrivacyBg addSubview:PrivacyTitleLabel];
+//
+//    [PrivacyTitleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
+//        make.left.mas_equalTo(10);
+//        make.top.mas_equalTo(15);
+//        make.width.mas_equalTo(150);
+//        make.height.mas_equalTo(20);
+//    }];
+//    
+//    UIButton *setPrivacyBut = [[UIButton alloc] init];
+//    
+//    // gradient
+//    CAGradientLayer *gl = [CAGradientLayer layer];
+//    gl.frame = CGRectMake(0,0,80.f,32.f);
+//    gl.startPoint = CGPointMake(0, 0.5);
+//    gl.endPoint = CGPointMake(1, 0.5);
+//    gl.colors = @[(__bridge id)HW0CDEFDColor.CGColor, (__bridge id)HW058DFBColor.CGColor];
+//    gl.locations = @[@(0), @(1.0f)];
+//
+//    [setPrivacyBut.layer addSublayer:gl];
+//    
+//    setPrivacyBut.tag = 4;
+//    [setPrivacyBut addTarget:self action:@selector(didClickButFun:) forControlEvents:UIControlEventTouchUpInside];
+//    setPrivacyBut.layer.cornerRadius = 16.0;
+//    setPrivacyBut.layer.masksToBounds = YES;
+//    [setPrivacyBut setTitle:NSLocalizedString(@"set_Privacy_button_title",nil) forState:UIControlStateNormal];
+//    setPrivacyBut.titleLabel.font = [UIFont systemFontOfSize:12.0];
+//    [PrivacyBg addSubview:setPrivacyBut];
+//
+//    [setPrivacyBut mas_makeConstraints:^(MASConstraintMaker *make) {
+//        make.right.mas_equalTo(-10);
+//        make.top.mas_equalTo(10);
+//        make.width.mas_equalTo(80);
+//        make.height.mas_equalTo(32);
+//    }];
+//    
+//    UILabel *PrivacyTipLabel = [[UILabel alloc] init];
+//    PrivacyTipLabel.text = NSLocalizedString(@"set_Privacy_Tip",nil) ;
+//    PrivacyTipLabel.font = [UIFont systemFontOfSize:14.0];
+//    PrivacyTipLabel.textColor = [UIColor hwColor:@"#01B7EA" alpha:1.0];
+//    [PrivacyBg addSubview:PrivacyTipLabel];
+//
+//    [PrivacyTipLabel mas_makeConstraints:^(MASConstraintMaker *make) {
+//        make.left.mas_equalTo(10);
+//        make.top.mas_equalTo(PrivacyTitleLabel.mas_bottom).offset(10);
+//        make.right.mas_equalTo(0);
+//        make.height.mas_equalTo(20);
+//    }];
+//    
+//    UILabel *PrivacyTipLabel2 = [[UILabel alloc] init];
+//    PrivacyTipLabel2.text = NSLocalizedString(@"my_set_Privacy_Mode_tip1",nil) ;
+//    //PrivacyTipLabel2.font = [UIFont systemFontOfSize:12.0];
+//    PrivacyTipLabel2.textColor = [UIColor hwColor:@"#6A6A6A" alpha:1.0];
+//    PrivacyTipLabel2.numberOfLines = 0;
+//    [PrivacyBg addSubview:PrivacyTipLabel2];
+//    PrivacyTipLabel2.adjustsFontSizeToFitWidth = YES;
+//    
+//    //PrivacyTipLabel2.backgroundColor = [UIColor redColor];
+//    //CGFloat PrivacyTipLabel2height = PrivacyBgH *(0.5);
+//    
+//    [PrivacyTipLabel2 mas_makeConstraints:^(MASConstraintMaker *make) {
+//        make.left.mas_equalTo(10);
+//        //make.top.mas_equalTo(PrivacyTipLabel.mas_bottom).offset(15);
+//        make.right.mas_equalTo(-10);
+//        make.height.mas_equalTo(30);
+//        make.bottom.mas_equalTo(-10);
+//    }];
+//    
+//    
+//    //文件上传
+//    UIView *fileUploadBgView = [[UIView alloc] init];
+//    fileUploadBgView.backgroundColor = [UIColor whiteColor];
+//    fileUploadBgView.layer.cornerRadius = 8;
+//    [self addSubview:fileUploadBgView];
+//    
+//    [fileUploadBgView mas_makeConstraints:^(MASConstraintMaker *make) {
+//        make.left.mas_equalTo(10);
+//        make.top.mas_equalTo(PrivacyBg.mas_bottom).offset(15);
+//        make.right.mas_equalTo(-10);
+//        make.height.mas_equalTo(110);
+//    }];
+//    
+//    UILabel *titleLabel = [[UILabel alloc] init];
+//    titleLabel.text = NSLocalizedString(@"my_set_no_File_upload_title",nil) ;
+//    titleLabel.font = [UIFont boldSystemFontOfSize:16.0];
+//    titleLabel.textColor = [UIColor blackColor];
+//    [fileUploadBgView addSubview:titleLabel];
+//
+//    [titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
+//        make.left.mas_equalTo(10);
+//        make.top.mas_equalTo(10);
+//        make.width.mas_equalTo(140);
+//        make.height.mas_equalTo(20);
+//    }];
+//
+//    //上传记录
+//    UIImageView *arrowImageView = [[UIImageView alloc] init];
+//    arrowImageView.image = [UIImage imageNamed:@"cell_right_access"];
+//    [fileUploadBgView addSubview:arrowImageView];
+//
+//    [arrowImageView mas_makeConstraints:^(MASConstraintMaker *make) {
+//        make.right.mas_equalTo(-10);
+//        make.top.mas_equalTo(10);
+//        make.width.mas_equalTo(20);
+//        make.height.mas_equalTo(20);
+//    }];
+//
+//    UILabel *rightLabel = [[UILabel alloc] init];
+//    rightLabel.text = NSLocalizedString(@"set_upload_download_tip",nil) ;
+//    rightLabel.font = [UIFont systemFontOfSize:14.0];
+//    rightLabel.textColor = [UIColor hwColor:@"#959799" alpha:1.0];
+//    rightLabel.textAlignment = NSTextAlignmentRight;
+//    [fileUploadBgView addSubview:rightLabel];
+//    
+//    [rightLabel mas_makeConstraints:^(MASConstraintMaker *make) {
+//        make.right.mas_equalTo(arrowImageView.mas_left).offset(-2);
+//        make.top.mas_equalTo(10);
+//        make.width.mas_equalTo(200);
+//        make.height.mas_equalTo(20);
+//    }];
+//
+//    UIButton *recordBut = [[UIButton alloc] init];
+//    //recordBut.backgroundColor = [UIColor greenColor];
+//    recordBut.tag = 1;
+//    [recordBut addTarget:self action:@selector(didClickButFun:) forControlEvents:UIControlEventTouchUpInside];
+//    [fileUploadBgView addSubview:recordBut];
+//    
+//    [recordBut mas_makeConstraints:^(MASConstraintMaker *make) {
+//        make.right.mas_equalTo(0);
+//        make.top.mas_equalTo(0);
+//        make.width.mas_equalTo(150);
+//        make.height.mas_equalTo(40);
+//    }];
+//
+////    arrowImageView.hidden = YES;
+////    rightLabel.hidden = YES;
+////    recordBut.hidden = YES;
+//    
+//    //图片上传
+//    NSString* curImgUploadStr = [[NSString alloc] initWithFormat:@"%@ %@",@"  ",NSLocalizedString(@"my_set_no_image_upload",nil)];
+//    UIButton *imageUploadBut = [[UIButton alloc] init];
+//    [imageUploadBut setImage:[UIImage imageNamed:@"icon_image_upload"] forState:UIControlStateNormal];
+//    [imageUploadBut setTitle:curImgUploadStr forState:UIControlStateNormal];
+//    imageUploadBut.backgroundColor = [UIColor hwColor:@"#00D1C1" alpha:0.1];
+//    imageUploadBut.layer.cornerRadius = 4;
+//    [imageUploadBut setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
+//    imageUploadBut.titleLabel.font = [UIFont systemFontOfSize:13.0];
+//    imageUploadBut.tag = 2;
+//    [imageUploadBut addTarget:self action:@selector(didClickButFun:) forControlEvents:UIControlEventTouchUpInside];
+//    [fileUploadBgView addSubview:imageUploadBut];
+//
+//    [imageUploadBut mas_makeConstraints:^(MASConstraintMaker *make) {
+//        make.left.mas_equalTo(10);
+//        make.right.mas_equalTo(self.mas_centerX).offset(-10);
+//        make.bottom.mas_equalTo(-10);
+//        make.height.mas_equalTo(48);
+//    }];
+//
+//    //视频上传
+//    NSString* curVidelUploadStr = [[NSString alloc] initWithFormat:@"%@ %@",@"  ",NSLocalizedString(@"my_set_no_video_upload",nil)];
+//    UIButton *videoUploadBut = [[UIButton alloc] init];
+//    [videoUploadBut setImage:[UIImage imageNamed:@"icon_video_upload"] forState:UIControlStateNormal];
+//    [videoUploadBut setTitle:curVidelUploadStr forState:UIControlStateNormal];
+//    videoUploadBut.backgroundColor = [UIColor hwColor:@"#00D8FF" alpha:0.1];
+//    videoUploadBut.layer.cornerRadius = 4;
+//    [videoUploadBut setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
+//    videoUploadBut.titleLabel.font = [UIFont systemFontOfSize:13.0];
+//    videoUploadBut.tag = 3;
+//    [videoUploadBut addTarget:self action:@selector(didClickButFun:) forControlEvents:UIControlEventTouchUpInside];
+//    [fileUploadBgView addSubview:videoUploadBut];
+//
+//    [videoUploadBut mas_makeConstraints:^(MASConstraintMaker *make) {
+//        make.right.mas_equalTo(-10);
+//        make.left.mas_equalTo(self.mas_centerX).offset(10);
+//        make.bottom.mas_equalTo(-10);
+//        make.height.mas_equalTo(48);
+//    }];
+//    
+//    
+//    //文件备份
+//    UIView *fileBackupsBgView = [[UIView alloc] init];
+//    fileBackupsBgView.backgroundColor = [UIColor whiteColor];
+//    fileBackupsBgView.layer.cornerRadius = 8;
+//    [self addSubview:fileBackupsBgView];
+//    
+//    [fileBackupsBgView mas_makeConstraints:^(MASConstraintMaker *make) {
+//        make.left.mas_equalTo(10);
+//        make.top.mas_equalTo(fileUploadBgView.mas_bottom).offset(15);
+//        make.right.mas_equalTo(-10);
+//        make.height.mas_equalTo(110);
+//    }];
+//    
+//    UILabel *BackupsTitleLabel = [[UILabel alloc] init];
+//    BackupsTitleLabel.text = NSLocalizedString(@"set_Privacy_title",nil) ;
+//    BackupsTitleLabel.font = [UIFont boldSystemFontOfSize:16.0];
+//    BackupsTitleLabel.textColor = [UIColor blackColor];
+//    [fileBackupsBgView addSubview:BackupsTitleLabel];
+//
+//    [BackupsTitleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
+//        make.left.mas_equalTo(10);
+//        make.top.mas_equalTo(10);
+//        make.width.mas_equalTo(180);
+//        make.height.mas_equalTo(20);
+//    }];
+//
+//    //
+//    UIImageView *arrowImageView2 = [[UIImageView alloc] init];
+//    arrowImageView2.image = [UIImage imageNamed:@"cell_right_access"];
+//    [fileBackupsBgView addSubview:arrowImageView2];
+//
+//    [arrowImageView2 mas_makeConstraints:^(MASConstraintMaker *make) {
+//        make.right.mas_equalTo(-10);
+//        make.top.mas_equalTo(10);
+//        make.width.mas_equalTo(20);
+//        make.height.mas_equalTo(20);
+//    }];
+//    
+//    NSString *BackupsRightTitle = NSLocalizedString(@"set_Privacy_right_tip",nil);
+//    CGFloat BackupsRightW = [BackupsRightTitle boundingRectWithSize:CGSizeMake(200, 20) options:(NSStringDrawingUsesLineFragmentOrigin) attributes:@{NSFontAttributeName:[UIFont systemFontOfSize:14.0]} context:nil].size.width;
+//    BackupsRightW += 5;
+//    
+//    UILabel *BackupsRightLabel = [[UILabel alloc] init];
+//    BackupsRightLabel.text =  BackupsRightTitle;
+//    BackupsRightLabel.font = [UIFont systemFontOfSize:14.0];
+//    BackupsRightLabel.textColor = [UIColor hwColor:@"#959799" alpha:1.0];
+//    BackupsRightLabel.textAlignment = NSTextAlignmentRight;
+//    [fileBackupsBgView addSubview:BackupsRightLabel];
+//
+//    [BackupsRightLabel mas_makeConstraints:^(MASConstraintMaker *make) {
+//        make.right.mas_equalTo(arrowImageView.mas_left).offset(-2);
+//        make.top.mas_equalTo(10);
+//        make.width.mas_equalTo(BackupsRightW);
+//        make.height.mas_equalTo(20);
+//    }];
+//
+//    UIButton *BackupsSetBut = [[UIButton alloc] init];
+//    //BackupsSetBut.backgroundColor = [UIColor greenColor];
+//    BackupsSetBut.tag = 5;
+//    [BackupsSetBut addTarget:self action:@selector(didClickButFun:) forControlEvents:UIControlEventTouchUpInside];
+//    [fileBackupsBgView addSubview:BackupsSetBut];
+//
+//    [BackupsSetBut mas_makeConstraints:^(MASConstraintMaker *make) {
+//        make.right.mas_equalTo(0);
+//        make.top.mas_equalTo(0);
+//        make.left.mas_equalTo(BackupsRightLabel.mas_left);
+//        make.height.mas_equalTo(40);
+//    }];
+//    
+////    arrowImageView2.hidden = YES;
+////    BackupsRightLabel.hidden = YES;
+////    BackupsSetBut.hidden = YES;
+//    
+//    UIButton *BackupsEyeBut = [[UIButton alloc] init];
+//    //BackupsEyeBut.backgroundColor = [UIColor greenColor];
+//    [BackupsEyeBut setImage:[UIImage imageNamed:@"common_eye_open"] forState:UIControlStateNormal];
+//    [BackupsEyeBut setImage:[UIImage imageNamed:@"common_eye_close"] forState:UIControlStateSelected];
+//    BackupsEyeBut.tag = 6;
+//    [BackupsEyeBut addTarget:self action:@selector(didClickButFun:) forControlEvents:UIControlEventTouchUpInside];
+//    [fileBackupsBgView addSubview:BackupsEyeBut];
+//
+//    [BackupsEyeBut mas_makeConstraints:^(MASConstraintMaker *make) {
+//        make.right.mas_equalTo(BackupsSetBut.mas_left).offset(0);
+//        make.centerY.mas_equalTo(BackupsRightLabel.mas_centerY);
+//        make.width.mas_equalTo(40);
+//        make.height.mas_equalTo(40);
+//    }];
+//    
+//    BackupsEyeBut.hidden = YES;
+//    
+//    imageBackupsBgView = [[UIView alloc] init];
+//    imageBackupsBgView.backgroundColor = [UIColor hwColor:@"#F9F9F9" alpha:1.0];
+//    imageBackupsBgView.layer.cornerRadius = 8;
+//    [fileBackupsBgView addSubview:imageBackupsBgView];
+//    
+//    [imageBackupsBgView mas_makeConstraints:^(MASConstraintMaker *make) {
+//        make.right.mas_equalTo(-10);
+//        make.left.mas_equalTo(10);
+//        make.bottom.mas_equalTo(-10);
+//        make.height.mas_equalTo(56);
+//    }];
+//    
+//    UIImageView *backupsImageV = [[UIImageView alloc] init];
+//    backupsImageV.image = [UIImage imageNamed:@"image_backups_icon"];
+//    [imageBackupsBgView addSubview:backupsImageV];
+//    
+//    [backupsImageV mas_makeConstraints:^(MASConstraintMaker *make) {
+//        make.centerY.mas_equalTo(0);
+//        make.left.mas_equalTo(10);
+//        make.width.mas_equalTo(28);
+//        make.height.mas_equalTo(28);
+//    }];
+//    
+//    UILabel *imageBackupsTitleLabel = [[UILabel alloc] init];
+//    imageBackupsTitleLabel.text = NSLocalizedString(@"set_Privacy_title_image",nil) ;
+//    imageBackupsTitleLabel.font = [UIFont systemFontOfSize:14.0];
+//    imageBackupsTitleLabel.textColor = [UIColor blackColor];
+//    [imageBackupsBgView addSubview:imageBackupsTitleLabel];
+//
+//    [imageBackupsTitleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
+//        make.centerY.mas_equalTo(-10);
+//        make.left.mas_equalTo(backupsImageV.mas_right).offset(10);
+//        make.right.mas_equalTo(-(10+60+10));
+//        make.height.mas_equalTo(20);
+//    }];
+//    
+//    _imageBackupsLabel = [[UILabel alloc] init];
+//    //_imageBackupsLabel.text = NSLocalizedString(@"set_Privacy_title_image_open",nil) ;
+//    _imageBackupsLabel.font = [UIFont systemFontOfSize:12.0];
+//    _imageBackupsLabel.textColor = [UIColor hwColor:@"#6A6A6A" alpha:1.0];
+//    [imageBackupsBgView addSubview:_imageBackupsLabel];
+//
+//    [_imageBackupsLabel mas_makeConstraints:^(MASConstraintMaker *make) {
+//        make.centerY.mas_equalTo(10);
+//        make.left.mas_equalTo(backupsImageV.mas_right).offset(10);
+//        make.right.mas_equalTo(-(10+60+10));
+//        make.height.mas_equalTo(20);
+//    }];
+//    
+//    _imageBackupsButton = [[UIButton alloc] init];
+//    _imageBackupsButton.backgroundColor = [UIColor hwColor:@"#DCF4FB" alpha:1.0];
+//    _imageBackupsButton.tag = 7;
+//    [_imageBackupsButton addTarget:self action:@selector(didClickButFun:) forControlEvents:UIControlEventTouchUpInside];
+//    _imageBackupsButton.layer.cornerRadius = 12.0;
+//    _imageBackupsButton.layer.masksToBounds = YES;
+//    [_imageBackupsButton setTitle:NSLocalizedString(@"common_open",nil) forState:UIControlStateNormal];
+//    [_imageBackupsButton setTitle:NSLocalizedString(@"common_close",nil) forState:UIControlStateSelected];
+//    [_imageBackupsButton setTitleColor:[UIColor hwColor:@"#01B7EA" alpha:1.0] forState:UIControlStateNormal];
+//    _imageBackupsButton.titleLabel.font = [UIFont systemFontOfSize:12.0];
+//    [imageBackupsBgView addSubview:_imageBackupsButton];
+//
+//    [_imageBackupsButton mas_makeConstraints:^(MASConstraintMaker *make) {
+//        make.right.mas_equalTo(-10);
+//        make.centerY.mas_equalTo(0);
+//        make.width.mas_equalTo(60);
+//        make.height.mas_equalTo(24);
+//    }];
+//    
+//    
+//    //其他功能
+//    UIView *otherBgView = [[UIView alloc] init];
+//    otherBgView.backgroundColor = [UIColor whiteColor];
+//    otherBgView.layer.cornerRadius = 8;
+//    [self addSubview:otherBgView];
+//    
+//    [otherBgView mas_makeConstraints:^(MASConstraintMaker *make) {
+//        make.left.mas_equalTo(10);
+//        make.top.mas_equalTo(fileBackupsBgView.mas_bottom).offset(15);
+//        make.right.mas_equalTo(-10);
+//        make.height.mas_equalTo(135 + 88);
+//    }];
+//    
+//    UILabel *otherTitleLabel = [[UILabel alloc] init];
+//    otherTitleLabel.text = NSLocalizedString(@"set_other_title",nil) ;
+//    otherTitleLabel.font = [UIFont boldSystemFontOfSize:16.0];
+//    otherTitleLabel.textColor = [UIColor blackColor];
+//    [otherBgView addSubview:otherTitleLabel];
+//
+//    [otherTitleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
+//        make.left.mas_equalTo(10);
+//        make.top.mas_equalTo(10);
+//        make.width.mas_equalTo(150);
+//        make.height.mas_equalTo(20);
+//    }];
+//    
+//    
+//    NSArray *titleArr = @[NSLocalizedString(@"my_set_no_change_phone",nil),
+//                          NSLocalizedString(@"my_set_no_restart_phone",nil),
+//                          NSLocalizedString(@"my_set_no_Restore_Factory",nil),
+//                          NSLocalizedString(@"my_set_no_common_problem",nil),
+//                          NSLocalizedString(@"my_set_no_check_update",nil),
+//                          NSLocalizedString(@"my_set_no_clear_cache",nil)];
+//    
+//    NSArray *imageArr = @[@"icon_change_ohone",@"icon-gengxin",
+//                          @"icon_Restore_Factory",@"icon_common_problem",
+//                          @"app_update",@"app_clear_cache"];
+//    
+//    //CGFloat butWidth = (SCREEN_W -20)/titleArr.count;
+//    CGFloat butWidth = (SCREEN_W -20)/5;
+//    CGFloat butHeight = 88.0;
+//    
+//    for (int i=0; i<titleArr.count; i++) {
+//        
+//        UIButton *curButton = [UIButton buttonWithType:UIButtonTypeCustom];
+//        curButton.tag = 10 + i;
 //        
-//        [curImageV mas_makeConstraints:^(MASConstraintMaker *make) {
-//            make.left.mas_equalTo(butWidth*i);
-//            make.bottom.mas_equalTo(curlab.mas_top);
+//        [curButton setImage:[UIImage imageNamed:imageArr[i]] forState:UIControlStateNormal];
+//        [curButton setTitle:titleArr[i] forState:UIControlStateNormal];
+//        [curButton setTitleColor:[UIColor hwColor:@"#0A132B" alpha:1.0] forState:UIControlStateNormal];
+//        curButton.titleLabel.font = [UIFont systemFontOfSize:12.0];
+//        
+//        [curButton addTarget:self action:@selector(didClickButFun:) forControlEvents:UIControlEventTouchUpInside];
+//        [otherBgView addSubview:curButton];
+//        //curButton.backgroundColor = [UIColor redColor];
+//
+//        [curButton mas_makeConstraints:^(MASConstraintMaker *make) {
+//            make.left.mas_equalTo(butWidth*(i%5));
+//            make.top.mas_equalTo(otherTitleLabel.mas_bottom).offset((i/5) * (butHeight));
 //            make.width.mas_equalTo(butWidth);
-//            make.height.mas_equalTo(40);
+//            make.height.mas_equalTo(butHeight);
 //        }];
 //        
-//        curImageV.backgroundColor = [UIColor orangeColor];
-        
-        
-    }
-}
+//        CGFloat titleOffset = 0.0;
+//        
+//        [curButton setTitleEdgeInsets:UIEdgeInsetsMake(curButton.imageView.frame.size.height+5,-curButton.imageView.frame.size.width, 0.0,0.0)];
+//        [curButton setImageEdgeInsets:UIEdgeInsetsMake(-curButton.bounds.size.width/4+5, curButton.bounds.size.width/4-titleOffset, curButton.titleLabel.bounds.size.height, -curButton.bounds.size.width/4)];
+//        
+//        
+////        UILabel *curlab = [[UILabel alloc] init];
+////        curlab.text = titleArr[i];
+////        curlab.font = [UIFont systemFontOfSize:12.0];
+////        curlab.textColor = [UIColor hwColor:@"#0A132B" alpha:1.0];
+////        curlab.numberOfLines = 0;
+////        curlab.textAlignment = NSTextAlignmentCenter;
+////        [otherBgView addSubview:curlab];
+////        
+////        [curlab mas_makeConstraints:^(MASConstraintMaker *make) {
+////            make.left.mas_equalTo(butWidth);//* (i%5)
+////            make.bottom.mas_equalTo(-10);
+////            make.width.mas_equalTo(butWidth);
+////            make.height.mas_equalTo(30); //+ (i/5) * (butHeight + 12.0)
+////        }];
+////        curButton.backgroundColor = [UIColor greenColor];
+//        
+////        UIButton *curImageV = [[UIButton alloc] init];
+////        curImageV.userInteractionEnabled = NO;
+////        [curImageV setImage:[UIImage imageNamed:imageArr[i]] forState:UIControlStateNormal];;
+////        [otherBgView addSubview:curImageV];
+////        
+////        [curImageV mas_makeConstraints:^(MASConstraintMaker *make) {
+////            make.left.mas_equalTo(butWidth*i);
+////            make.bottom.mas_equalTo(curlab.mas_top);
+////            make.width.mas_equalTo(butWidth);
+////            make.height.mas_equalTo(40);
+////        }];
+////        
+////        curImageV.backgroundColor = [UIColor orangeColor];
+//        
+//        
+//    }
+//}
 
 - (void)closeImageBackupsFun
 {

+ 5 - 0
创维盒子/双子星云手机/zh-Hans.lproj/Localizable.strings

@@ -451,3 +451,8 @@
 "player_link_fail_tip_type9" = "网络异常,请联系Private-X公众号客服寻求帮助!";
 "common_loading_tip" = "数据正在加载中";
 "app_update_wait"   = "稍后再说";
+
+//1.4.0
+"my_set_no_music"   = "音乐";
+"my_set_no_file"   = "文件";
+"my_set_no_share"   = "分享";