Browse Source

1.新建路径UI

huangxiaodong 1 year ago
parent
commit
ce74065bcb

+ 16 - 0
创维盒子/双子星云手机.xcodeproj/project.pbxproj

@@ -190,6 +190,10 @@
 		6B5B606F2B3D7E3B009A2AE2 /* fileTransferPathCheckViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 6B5B606D2B3D7E3B009A2AE2 /* fileTransferPathCheckViewController.m */; };
 		6B5B60722B3D8098009A2AE2 /* fileTransferPathCheckTableViewCell.h in Headers */ = {isa = PBXBuildFile; fileRef = 6B5B60702B3D8098009A2AE2 /* fileTransferPathCheckTableViewCell.h */; };
 		6B5B60732B3D8098009A2AE2 /* fileTransferPathCheckTableViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 6B5B60712B3D8098009A2AE2 /* fileTransferPathCheckTableViewCell.m */; };
+		6B5B60762B3E665E009A2AE2 /* filePathCreatPopView.h in Headers */ = {isa = PBXBuildFile; fileRef = 6B5B60742B3E665E009A2AE2 /* filePathCreatPopView.h */; };
+		6B5B60772B3E665E009A2AE2 /* filePathCreatPopView.m in Sources */ = {isa = PBXBuildFile; fileRef = 6B5B60752B3E665E009A2AE2 /* filePathCreatPopView.m */; };
+		6B5B607A2B3E71B6009A2AE2 /* filePathCreatTableViewCell.h in Headers */ = {isa = PBXBuildFile; fileRef = 6B5B60782B3E71B6009A2AE2 /* filePathCreatTableViewCell.h */; };
+		6B5B607B2B3E71B6009A2AE2 /* filePathCreatTableViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 6B5B60792B3E71B6009A2AE2 /* filePathCreatTableViewCell.m */; };
 		6B72724B2B0AF59200C03F87 /* uploadFileRecordTableViewHeadView.h in Headers */ = {isa = PBXBuildFile; fileRef = 6B7272492B0AF59200C03F87 /* uploadFileRecordTableViewHeadView.h */; };
 		6B72724C2B0AF59200C03F87 /* uploadFileRecordTableViewHeadView.m in Sources */ = {isa = PBXBuildFile; fileRef = 6B72724A2B0AF59200C03F87 /* uploadFileRecordTableViewHeadView.m */; };
 		6B72724F2B0B58E500C03F87 /* uploadFileRecordEditBottomView.h in Headers */ = {isa = PBXBuildFile; fileRef = 6B72724D2B0B58E500C03F87 /* uploadFileRecordEditBottomView.h */; };
@@ -581,6 +585,10 @@
 		6B5B606D2B3D7E3B009A2AE2 /* fileTransferPathCheckViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = fileTransferPathCheckViewController.m; sourceTree = "<group>"; };
 		6B5B60702B3D8098009A2AE2 /* fileTransferPathCheckTableViewCell.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = fileTransferPathCheckTableViewCell.h; sourceTree = "<group>"; };
 		6B5B60712B3D8098009A2AE2 /* fileTransferPathCheckTableViewCell.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = fileTransferPathCheckTableViewCell.m; sourceTree = "<group>"; };
+		6B5B60742B3E665E009A2AE2 /* filePathCreatPopView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = filePathCreatPopView.h; sourceTree = "<group>"; };
+		6B5B60752B3E665E009A2AE2 /* filePathCreatPopView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = filePathCreatPopView.m; sourceTree = "<group>"; };
+		6B5B60782B3E71B6009A2AE2 /* filePathCreatTableViewCell.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = filePathCreatTableViewCell.h; sourceTree = "<group>"; };
+		6B5B60792B3E71B6009A2AE2 /* filePathCreatTableViewCell.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = filePathCreatTableViewCell.m; sourceTree = "<group>"; };
 		6B7272492B0AF59200C03F87 /* uploadFileRecordTableViewHeadView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = uploadFileRecordTableViewHeadView.h; sourceTree = "<group>"; };
 		6B72724A2B0AF59200C03F87 /* uploadFileRecordTableViewHeadView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = uploadFileRecordTableViewHeadView.m; sourceTree = "<group>"; };
 		6B72724D2B0B58E500C03F87 /* uploadFileRecordEditBottomView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = uploadFileRecordEditBottomView.h; sourceTree = "<group>"; };
@@ -1328,6 +1336,10 @@
 				6B5B60692B3D67B2009A2AE2 /* fileSetTableViewCell.m */,
 				6B5B60702B3D8098009A2AE2 /* fileTransferPathCheckTableViewCell.h */,
 				6B5B60712B3D8098009A2AE2 /* fileTransferPathCheckTableViewCell.m */,
+				6B5B60782B3E71B6009A2AE2 /* filePathCreatTableViewCell.h */,
+				6B5B60792B3E71B6009A2AE2 /* filePathCreatTableViewCell.m */,
+				6B5B60742B3E665E009A2AE2 /* filePathCreatPopView.h */,
+				6B5B60752B3E665E009A2AE2 /* filePathCreatPopView.m */,
 			);
 			path = view;
 			sourceTree = "<group>";
@@ -1769,6 +1781,7 @@
 				1868201D2AB97BE1005702A6 /* TipsQRCodeViewController.h in Headers */,
 				6B5B60602B3BC8DE009A2AE2 /* fileTransferPopView.h in Headers */,
 				181E85002A8F6B1800292B96 /* LogoSelectView.h in Headers */,
+				6B5B60762B3E665E009A2AE2 /* filePathCreatPopView.h in Headers */,
 				18BA24872AA5C57900BA01EE /* RSATool.h in Headers */,
 				6B3F963A2AD2AD0B008E349E /* newWorkInterface.h in Headers */,
 				6B0581B22AFE02B100D37290 /* uploadFileBottomView.h in Headers */,
@@ -1785,6 +1798,7 @@
 				6B2170912B15BAE700656670 /* privacyModeViewController.h in Headers */,
 				6BF0F3D02AD391D8000AA133 /* connectDeviceManager.h in Headers */,
 				6BFF26952AF9D8CC00FCB4F7 /* AuthCodeInputView.h in Headers */,
+				6B5B607A2B3E71B6009A2AE2 /* filePathCreatTableViewCell.h in Headers */,
 				18FCE5442AD136FF0020F623 /* ShortcutManager.h in Headers */,
 				6B2170A02B15D39900656670 /* privacyModeTipViewController.h in Headers */,
 				181E84FB2A8F57A500292B96 /* ChangeLogoViewController.h in Headers */,
@@ -2136,6 +2150,7 @@
 				A00221DB27EAFF4A00E45F78 /* HWAddBookmarkViewController.m in Sources */,
 				6BFF26922AF9D88200FCB4F7 /* AuthCodeTextField.m in Sources */,
 				18664FF52AC2B3A4008F8A61 /* ShearDeviceUDPManager.m in Sources */,
+				6B5B60772B3E665E009A2AE2 /* filePathCreatPopView.m in Sources */,
 				6BF52CA22AD7C2F600A617DB /* inputPWDViewController.m in Sources */,
 				A003F6B627D841EE00715CBF /* UIColor+Colors.m in Sources */,
 				6B05819E2AFCF4E800D37290 /* AJPhotoListView.m in Sources */,
@@ -2274,6 +2289,7 @@
 				A003F6C127D841FF00715CBF /* FLAnimatedImageView.m in Sources */,
 				6BF0F3D62AD3937B000AA133 /* DeviceThirdIdModel.m in Sources */,
 				184C8ACD2A94557200F26650 /* HidenMaskSetViewController.m in Sources */,
+				6B5B607B2B3E71B6009A2AE2 /* filePathCreatTableViewCell.m in Sources */,
 				18963B472AB84398006E7C50 /* GuideView.m in Sources */,
 				18FCE5452AD136FF0020F623 /* ShortcutManager.m in Sources */,
 				6B0582812B01C67400D37290 /* uploadFileRecordViewController.m in Sources */,

+ 35 - 3
创维盒子/双子星云手机/Class/Set/uploadFile/fileTransfeSet/fileTransferPathCheckViewController.m

@@ -7,6 +7,8 @@
 
 #import "fileTransferPathCheckViewController.h"
 #import "fileTransferPathCheckTableViewCell.h"
+#import "filePathCreatPopView.h"
+#import "IQKeyboardManager.h"
 
 @interface fileTransferPathCheckViewController ()<UITableViewDelegate,UITableViewDataSource>
 @property (nonatomic, strong) UITableView *tableView;
@@ -25,6 +27,7 @@
     [self.view setBackgroundColor:HWF5F7FAColor];
     
     [self drawAnyView];
+    [self setupKeyboardManager];
 }
 
 - (void)drawAnyView{
@@ -56,6 +59,29 @@
     
 }
 
+
+- (void)viewWillAppear:(BOOL)animated
+{
+    [super viewWillAppear:animated];
+    IQKeyboardManager *keyboardManager = [IQKeyboardManager sharedManager];
+    keyboardManager.enable = YES;
+}
+
+- (void)viewWillDisappear:(BOOL)animated
+{
+    [super viewWillDisappear:animated];
+    IQKeyboardManager *keyboardManager = [IQKeyboardManager sharedManager];
+    keyboardManager.enable = NO;
+}
+
+- (void)setupKeyboardManager {
+    IQKeyboardManager *keyboardManager = [IQKeyboardManager sharedManager];
+    keyboardManager.enable = YES;
+    keyboardManager.shouldResignOnTouchOutside = YES;
+    keyboardManager.shouldShowToolbarPlaceholder = NO;
+    keyboardManager.enableAutoToolbar = NO;
+}
+
 #pragma mark - 懒加载
 - (UITableView *)tableView{
     if (!_tableView) {
@@ -160,8 +186,14 @@
 
 - (void)didiClikRightButFun:(UIButton*)but
 {
-//    uploadFileRecordViewController *vc = [uploadFileRecordViewController new];
-//    vc.isNotUploadingType = YES;
-//    [self.navigationController pushViewController:vc animated:YES];
+    filePathCreatPopView * filePathCreatPopV = [[filePathCreatPopView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_W, SCREEN_H)];
+    
+    //[self.view.window addSubview:filePathCreatPopV];
+    [self.view addSubview:filePathCreatPopV];
+    
+//    KWeakSelf
+//    filePathCreatPopV.didClickBut = ^(NSInteger tag) {
+//        
+//    };
 }
 @end

+ 16 - 0
创维盒子/双子星云手机/Class/Set/uploadFile/fileTransfeSet/view/filePathCreatPopView.h

@@ -0,0 +1,16 @@
+//
+//  filePathCreatPopView.h
+//  隐私保护
+//
+//  Created by xd h on 2023/12/29.
+//
+
+#import <UIKit/UIKit.h>
+
+NS_ASSUME_NONNULL_BEGIN
+
+@interface filePathCreatPopView : UIView
+@property (nonatomic,copy) void (^didClickBut)(NSInteger tag);
+@end
+
+NS_ASSUME_NONNULL_END

+ 372 - 0
创维盒子/双子星云手机/Class/Set/uploadFile/fileTransfeSet/view/filePathCreatPopView.m

@@ -0,0 +1,372 @@
+//
+//  filePathCreatPopView.m
+//  隐私保护
+//
+//  Created by xd h on 2023/12/29.
+//
+
+#import "filePathCreatPopView.h"
+#import "filePathCreatTableViewCell.h"
+
+
+@interface filePathCreatPopView ()<UITableViewDelegate,UITableViewDataSource,UITextFieldDelegate>
+{
+    UIView *whiteBgView;
+    UITextField *filePathNameTF;
+    
+    UIButton *canclButton;
+    UIButton *okButton;
+}
+
+@property (nonatomic, strong) UITableView *tableView;
+@end
+
+@implementation filePathCreatPopView
+
+- (id)initWithFrame:(CGRect)frame{
+    self = [super initWithFrame:frame];
+    
+    [self drawAnyView];
+    
+ 
+    
+    return self;
+}
+
+
+
+- (void)drawAnyView{
+    [self setBackgroundColor:[UIColor hwColor:@"#000000" alpha:0.6]];
+    
+    whiteBgView = [[UIView alloc] init];
+    whiteBgView.backgroundColor = [UIColor whiteColor];
+    whiteBgView.layer.cornerRadius = 12;
+    [self addSubview:whiteBgView];
+    
+    [whiteBgView mas_makeConstraints:^(MASConstraintMaker *make) {
+        make.left.mas_equalTo(0);
+        make.right.mas_equalTo(0);
+        make.height.mas_equalTo(418+ 10 + safeArea);
+        make.bottom.mas_equalTo(10);
+    }];
+    
+    UIView *tapView = [[UIView alloc] init];
+    [self addSubview:tapView];
+    
+//    UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapUpFun:)];
+//    [tapView addGestureRecognizer:tap];
+    
+    [tapView mas_makeConstraints:^(MASConstraintMaker *make) {
+        make.left.mas_equalTo(0);
+        make.right.mas_equalTo(0);
+        make.top.mas_equalTo(0);
+        make.bottom.mas_equalTo(whiteBgView.mas_top);
+    }];
+    
+    UILabel *titleLabel = [[UILabel alloc] init];
+    titleLabel.text = NSLocalizedString(@"File_upload_path_new",nil);
+    titleLabel.font = [UIFont boldSystemFontOfSize:18.0];
+    titleLabel.textColor = [UIColor hwColor:@"#0A132B" alpha:1.0];
+    [whiteBgView addSubview:titleLabel];
+
+    [titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
+        make.right.mas_equalTo(0);
+        make.height.mas_equalTo(20);
+        make.left.mas_equalTo(15);
+        make.top.mas_equalTo(15);
+    }];
+    
+    [whiteBgView addSubview:self.tableView];
+    [self.tableView mas_makeConstraints:^(MASConstraintMaker *make) {
+        make.left.mas_equalTo(15);
+        make.right.mas_equalTo(-15);
+        make.height.mas_equalTo(70*2+50);
+        make.top.equalTo(titleLabel.mas_bottom).offset(15.f);
+    }];
+    
+    
+    UILabel *tipLabel = [[UILabel alloc] init];
+    tipLabel.text = NSLocalizedString(@"File_upload_path_new_name_tip",nil);
+    tipLabel.font = [UIFont systemFontOfSize:14.0];
+    tipLabel.textColor = [UIColor hwColor:@"#0A132B" alpha:1.0];
+    [whiteBgView addSubview:tipLabel];
+
+    [tipLabel mas_makeConstraints:^(MASConstraintMaker *make) {
+        make.right.mas_equalTo(0);
+        make.height.mas_equalTo(20);
+        make.left.mas_equalTo(15);
+        make.top.equalTo(self.tableView.mas_bottom).offset(15);
+    }];
+    
+    filePathNameTF = [[UITextField alloc] init];
+    filePathNameTF.backgroundColor = [UIColor hwColor:@"#F9F9F9" alpha:1.0];
+    filePathNameTF.layer.cornerRadius = 8;
+    filePathNameTF.font = [UIFont systemFontOfSize:14.0];
+    filePathNameTF.placeholder = NSLocalizedString(@"File_upload_path_new_input_tip",nil);
+    filePathNameTF.delegate = self;
+    filePathNameTF.returnKeyType = UIReturnKeyDone;
+    [whiteBgView addSubview:filePathNameTF];
+    [filePathNameTF setTintColor:[UIColor hwColor:@"#01B7EA" alpha:1.0]];
+    
+    UIView *leftView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 10, 1)];
+    filePathNameTF.leftView = leftView;
+    filePathNameTF.leftViewMode = UITextFieldViewModeAlways;
+
+    [filePathNameTF mas_makeConstraints:^(MASConstraintMaker *make) {
+        make.right.mas_equalTo(-15);
+        make.height.mas_equalTo(48);
+        make.left.mas_equalTo(15);
+        make.top.equalTo(tipLabel.mas_bottom).offset(15);
+    }];
+    
+    
+    canclButton = [[UIButton alloc] init];
+    [canclButton setTitle:NSLocalizedString(@"other_cancel",nil) forState:UIControlStateNormal];
+    [canclButton setTitleColor:[UIColor hwColor:@"#0A132B" alpha:1.0] forState:UIControlStateNormal];
+    canclButton.backgroundColor = [UIColor hwColor:@"#E3E8F1" alpha:1.0];
+    canclButton.layer.cornerRadius = 8;
+    canclButton.tag = 1;
+    [canclButton addTarget:self action:@selector(didClickButtonFun:) forControlEvents:UIControlEventTouchUpInside];
+    [whiteBgView addSubview:canclButton];
+
+    [canclButton mas_makeConstraints:^(MASConstraintMaker *make) {
+        make.left.mas_equalTo(15.0);
+        make.right.equalTo(whiteBgView.mas_centerX).offset(-10);
+        make.height.mas_equalTo(40);
+        make.bottom.mas_equalTo(-safeArea -10);
+    }];
+
+
+    okButton = [[UIButton alloc] init];
+    okButton.tag = 2;
+    [okButton setTitle:NSLocalizedString(@"other_comment_ok",nil) forState:UIControlStateNormal];
+    okButton.titleLabel.font = [UIFont boldSystemFontOfSize:16.0];
+    okButton.layer.cornerRadius = 8;
+    okButton.layer.masksToBounds = YES;
+    [okButton addTarget:self action:@selector(didClickButtonFun:) forControlEvents:UIControlEventTouchUpInside];
+    [whiteBgView addSubview:okButton];
+
+    // gradient
+    CAGradientLayer* _glayer = [CAGradientLayer layer];
+    _glayer.startPoint = CGPointMake(0, 0.5);
+    _glayer.endPoint = CGPointMake(1, 0.5);
+    _glayer.colors = @[(__bridge id)[UIColor hwColor:@"#0BDDFD" alpha:1.0].CGColor, (__bridge id)[UIColor hwColor:@"#048CFB" alpha:1.0].CGColor];
+    _glayer.locations = @[@(0), @(1.0f)];
+    [okButton.layer  insertSublayer:_glayer atIndex:0];
+    
+    CGRect frame = CGRectMake(0, 0, SCREEN_W/2.0, 40);
+    _glayer.frame = frame;
+    
+    [okButton mas_makeConstraints:^(MASConstraintMaker *make) {
+        make.right.mas_equalTo(-15.0);
+        make.left.equalTo(whiteBgView.mas_centerX).offset(10);
+        make.height.mas_equalTo(40);
+        make.bottom.mas_equalTo(-safeArea -10);
+    }];
+}
+
+#pragma mark - 懒加载
+- (UITableView *)tableView{
+    if (!_tableView) {
+        _tableView = [[UITableView alloc] initWithFrame:CGRectMake(0, 0, 0, 0) style:UITableViewStylePlain];
+        _tableView.delegate = self;
+        _tableView.dataSource = self;
+        _tableView.showsVerticalScrollIndicator = NO;
+        _tableView.showsHorizontalScrollIndicator = NO;
+//        _tableView.contentInset = UIEdgeInsetsMake(-H_STATE_BAR, 0, 0, 0);
+        [_tableView setSeparatorStyle:(UITableViewCellSeparatorStyleNone)];
+        [_tableView setSeparatorColor:[UIColor clearColor]];
+        [_tableView setBackgroundColor:[UIColor clearColor]];
+        [_tableView setTableFooterView:[UIView new]];
+        [_tableView setBounces:YES];
+        _tableView.backgroundColor = [UIColor hwColor:@"#F9F9F9" alpha:1.0];
+        _tableView.layer.cornerRadius = 8;
+        _tableView.scrollEnabled = NO;
+        if (@available(iOS 15.0, *)) {
+            _tableView.sectionHeaderTopPadding = 0;
+        }
+        
+    }
+    
+    return _tableView;
+}
+
+
+#pragma mark - 列表委托
+- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView{
+    return 1;
+}
+
+- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
+    return 2;
+}
+
+- (filePathCreatTableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
+    
+    __block NSInteger row = indexPath.row;
+    static NSString *identifier = @"filePathCreatTableViewCell";
+    
+    filePathCreatTableViewCell * cell =  [tableView dequeueReusableCellWithIdentifier:identifier];
+    cell.selectionStyle = UITableViewCellSelectionStyleNone;
+    if (!cell){
+        cell = [[filePathCreatTableViewCell 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.lineView setHidden:YES];
+        [cell.checkButton setHidden:NO];
+        
+    }
+    
+    
+    if (row == 0){
+        //[cell.titleLabel setText:NSLocalizedString(@"File_Transfer_set_Cellular",nil)];
+        cell.titleLabel.text = @"云机系统名称";
+        
+        cell.checkButton.selected = YES;
+        
+    }else if (row == 1){
+        //[cell.titleLabel setText:NSLocalizedString(@"File_Transfer_set_battery_level",nil)];
+ 
+        cell.titleLabel.text = @"云机系统名称";
+        
+       
+    }
+
+    KWeakSelf
+    cell.didClickSwitch = ^(BOOL SwitchOn) {
+        
+    };
+    
+    return cell;
+}
+
+- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
+    return 70;
+}
+
+- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section
+{
+    return 40.0;
+}
+
+- (UIView*)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section
+{
+    UIView *headView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_W, 40)];
+    //headView.backgroundColor = [UIColor greenColor];
+    
+    UILabel *titleLabel = [[UILabel alloc] init];
+    titleLabel.text = NSLocalizedString(@"File_upload_path_new_check_tip",nil);
+    titleLabel.font = [UIFont systemFontOfSize:14.0];
+    titleLabel.textColor = [UIColor hwColor:@"#0A132B" alpha:1.0];
+    [headView addSubview:titleLabel];
+    
+    [titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
+        make.left.mas_equalTo(15);
+        make.right.mas_equalTo(-15);
+        make.height.mas_equalTo(20);
+        make.top.mas_equalTo(10);
+    }];
+    
+    return headView;
+}
+
+//- (void)setFileTransferType:(NSInteger)fileTransferType
+//{
+//    _fileTransferType = fileTransferType;
+//
+//    NSString *uploadTitle = NSLocalizedString(@"File_upload_type_image",nil);
+//    NSString *uploadTip = NSLocalizedString(@"File_upload_type_tip",nil);
+//
+//    NSString *downloadTitle = NSLocalizedString(@"File_down_type_image",nil);
+//    NSString *downloadTip = NSLocalizedString(@"File_down_type_tip",nil);
+//
+//    if(fileTransferType == 2)
+//    {
+//        uploadTitle = NSLocalizedString(@"File_upload_type_video",nil);
+//        downloadTitle = NSLocalizedString(@"File_down_type_video",nil);
+//    }
+//
+//    UILabel *uploadLabel = [[UILabel alloc] init];
+//    uploadLabel.textColor = [UIColor whiteColor];
+//    uploadLabel.font = [UIFont boldSystemFontOfSize:18.0];
+//    uploadLabel.numberOfLines = 0;
+//    [uploadButton addSubview:uploadLabel];
+//
+//    NSString *totalStr = [[NSString alloc] initWithFormat:@"%@\n%@",uploadTitle,uploadTip];
+//
+//    NSMutableAttributedString *noteStr = [[NSMutableAttributedString alloc] initWithString:totalStr];
+//
+//    NSRange redRange = NSMakeRange([totalStr rangeOfString:uploadTip].location, [totalStr rangeOfString:uploadTip].length);
+//    [noteStr addAttribute:NSForegroundColorAttributeName value:[UIColor hwColor:@"#FFFFFF" alpha:0.8] range:redRange];
+//    [noteStr addAttribute:NSFontAttributeName value:[UIFont systemFontOfSize:14.0] range:redRange];
+//    // 设置行间距
+//    NSMutableParagraphStyle *paragraphStyle = [[NSMutableParagraphStyle alloc] init];
+//    [paragraphStyle setLineSpacing:5];        //设置行间距
+//
+//    [noteStr addAttribute:NSParagraphStyleAttributeName value:paragraphStyle range:NSMakeRange(0, [totalStr  length])];
+//
+//    uploadLabel.attributedText = noteStr;
+//
+//    [uploadLabel mas_makeConstraints:^(MASConstraintMaker *make) {
+//        make.left.mas_equalTo(15);
+//        make.right.mas_equalTo(-15);
+//        make.bottom.mas_equalTo(0);
+//        make.top.mas_equalTo(0);
+//    }];
+//
+//    UILabel *downloadLabel = [[UILabel alloc] init];
+//    downloadLabel.textColor = [UIColor whiteColor];
+//    downloadLabel.font = [UIFont boldSystemFontOfSize:18.0];
+//    downloadLabel.numberOfLines = 0;
+//    [downButton addSubview:downloadLabel];
+//
+//    NSString *downTotalStr = [[NSString alloc] initWithFormat:@"%@\n%@",downloadTitle,downloadTip];
+//
+//    NSMutableAttributedString *downNoteStr = [[NSMutableAttributedString alloc] initWithString:downTotalStr];
+//
+//    NSRange downredRange = NSMakeRange([downTotalStr rangeOfString:downloadTip].location, [downTotalStr rangeOfString:downloadTip].length);
+//    [downNoteStr addAttribute:NSForegroundColorAttributeName value:[UIColor hwColor:@"#FFFFFF" alpha:0.8] range:downredRange];
+//    [downNoteStr addAttribute:NSFontAttributeName value:[UIFont systemFontOfSize:14.0] range:downredRange];
+//    // 设置行间距
+////    NSMutableParagraphStyle *paragraphStyle1 = [[NSMutableParagraphStyle alloc] init];
+////    [paragraphStyle1 setLineSpacing:5];        //设置行间距
+//
+//    [downNoteStr addAttribute:NSParagraphStyleAttributeName value:paragraphStyle range:NSMakeRange(0, [downTotalStr  length])];
+//
+//    downloadLabel.attributedText = downNoteStr;
+//
+//    [downloadLabel mas_makeConstraints:^(MASConstraintMaker *make) {
+//        make.left.mas_equalTo(15);
+//        make.right.mas_equalTo(-15);
+//        make.bottom.mas_equalTo(0);
+//        make.top.mas_equalTo(0);
+//    }];
+//}
+
+
+- (void)tapUpFun:(UITapGestureRecognizer*)tap
+{
+    //[self deleteFromSuperview];
+}
+
+- (void)deleteFromSuperview
+{
+    
+    [self removeFromSuperview];
+}
+
+- (void)didClickButtonFun:(UIButton*)button
+{
+    [self deleteFromSuperview];
+    
+    if(_didClickBut)
+    {
+        _didClickBut(1);
+    }
+}
+@end

+ 25 - 0
创维盒子/双子星云手机/Class/Set/uploadFile/fileTransfeSet/view/filePathCreatTableViewCell.h

@@ -0,0 +1,25 @@
+//
+//  filePathCreatTableViewCell.h
+//  隐私保护
+//
+//  Created by xd h on 2023/12/29.
+//
+
+#import <UIKit/UIKit.h>
+
+NS_ASSUME_NONNULL_BEGIN
+
+@interface filePathCreatTableViewCell : UITableViewCell
+@property(nonatomic,strong)UIView *lineView;
+@property(nonatomic,strong)UIView *cellBgView;
+@property(nonatomic,strong)UIImageView *mImageView;
+@property(nonatomic,strong)UILabel *titleLabel;
+@property(nonatomic,strong)UILabel *titleLabel2;
+@property(nonatomic,strong)UIImageView *rightImage;
+@property(nonatomic, strong) CALayer* bgViewLayer;
+@property(nonatomic, strong) UIButton *checkButton;
+
+@property (nonatomic,copy) void (^didClickSwitch)(BOOL SwitchOn);
+@end
+
+NS_ASSUME_NONNULL_END

+ 135 - 0
创维盒子/双子星云手机/Class/Set/uploadFile/fileTransfeSet/view/filePathCreatTableViewCell.m

@@ -0,0 +1,135 @@
+//
+//  filePathCreatTableViewCell.m
+//  隐私保护
+//
+//  Created by xd h on 2023/12/29.
+//
+
+#import "filePathCreatTableViewCell.h"
+
+
+@implementation filePathCreatTableViewCell
+@synthesize cellBgView;
+@synthesize mImageView;
+@synthesize titleLabel;
+@synthesize titleLabel2;
+@synthesize rightImage;
+@synthesize lineView;
+@synthesize checkButton;
+
+- (void)awakeFromNib {
+    [super awakeFromNib];
+    // Initialization code
+}
+
+- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
+{
+    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
+    
+    if (self)
+    {
+        [self drawView];
+    }
+    
+    return self;
+}
+
+- (void)drawView
+{
+    cellBgView = [[UIView alloc] init];
+    [self.contentView addSubview:cellBgView];
+    //cellBgView.backgroundColor = [UIColor whiteColor];
+    [cellBgView mas_makeConstraints:^(MASConstraintMaker *make) {
+        make.left.mas_equalTo(0.f);
+        make.top.mas_equalTo(0);
+        make.bottom.mas_equalTo(0);
+        make.right.mas_equalTo(0.f);
+        //make.width.mas_equalTo(SCREEN_W - 2*15.f);
+    }];
+    
+    /*图片*/
+    mImageView = [[UIImageView alloc] init];
+    [mImageView setBackgroundColor:[UIColor clearColor]];
+    mImageView.image = [UIImage imageNamed:@"uploadFile_file_icon"];
+    [cellBgView addSubview:mImageView];
+    [mImageView setContentMode:(UIViewContentModeScaleAspectFill)];
+    [mImageView mas_makeConstraints:^(MASConstraintMaker *make) {
+        make.left.mas_equalTo(15);
+        make.width.mas_equalTo(36);
+        make.height.mas_equalTo(36);
+        make.centerY.equalTo(cellBgView.mas_centerY);
+    }];
+    
+    /*右侧箭头*/
+    rightImage = [[UIImageView alloc] init];
+    [rightImage setBackgroundColor:[UIColor clearColor]];
+    [rightImage setImage:[UIImage imageNamed:@"cell_right_access"]];
+    [cellBgView addSubview:rightImage];
+    [rightImage mas_makeConstraints:^(MASConstraintMaker *make) {
+        make.width.mas_equalTo(28);
+        make.right.mas_equalTo(-15.f);
+        make.height.mas_equalTo(28);
+        make.centerY.equalTo(cellBgView.mas_centerY);
+    }];
+    
+    checkButton = [[UIButton alloc] init];
+    [checkButton setImage:[UIImage imageNamed:@"upload_file_uncheck"] forState:UIControlStateNormal];
+    [checkButton setImage:[UIImage imageNamed:@"upload_file_check"] forState:UIControlStateSelected];
+    [cellBgView addSubview:checkButton];
+    [checkButton mas_makeConstraints:^(MASConstraintMaker *make) {
+        make.right.mas_equalTo(-18.f);
+        make.centerY.equalTo(cellBgView.mas_centerY);
+        make.width.mas_equalTo(36.f);
+        make.height.mas_equalTo(36.f);
+    }];
+    
+    [checkButton addTarget:self action:@selector(maskSwitchPressed:) forControlEvents:(UIControlEventValueChanged)];
+    
+    
+    /**标题*/
+    titleLabel = [[UILabel alloc] init];
+    [cellBgView addSubview:titleLabel];
+    titleLabel.font = [UIFont boldSystemFontOfSize:14.f];
+    titleLabel.numberOfLines = 0;
+    [titleLabel setTextColor:HW0A132BColor];
+    [titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
+        make.left.equalTo(mImageView.mas_right).offset(5.f);
+        make.right.equalTo(checkButton.mas_left).offset(-5.f);
+        //make.centerY.equalTo(cellBgView.mas_centerY);
+        make.top.mas_equalTo(15.f);
+    }];
+    
+    /**副标题*/
+    titleLabel2 = [[UILabel alloc] init];
+    [cellBgView addSubview:titleLabel2];
+    titleLabel2.font = [UIFont systemFontOfSize:12.f];
+    //[titleLabel2 setTextAlignment:(NSTextAlignmentRight)];
+    [titleLabel2 setTextColor:HW666666Color];
+    [titleLabel2 mas_makeConstraints:^(MASConstraintMaker *make) {
+        make.right.mas_equalTo(-53.f);
+        make.left.mas_equalTo(titleLabel.mas_left);
+        //make.centerY.equalTo(cellBgView.mas_centerY);
+        make.bottom.mas_equalTo(-15);
+    }];
+    
+    lineView = [[UIView alloc] init];
+    [lineView setBackgroundColor:HW979797Color10];
+    [cellBgView addSubview:lineView];
+    [lineView mas_makeConstraints:^(MASConstraintMaker *make) {
+        make.right.mas_equalTo(-15.f);
+        make.left.mas_equalTo(15.f);
+        make.bottom.mas_equalTo(0);
+        make.height.mas_equalTo(1.f);
+    }];
+    
+    
+    titleLabel2.text = @"30GB/128GB";
+}
+
+- (void)maskSwitchPressed:(UISwitch *)maskSwitch{
+    if(_didClickSwitch){
+        _didClickSwitch(maskSwitch.on);
+    }
+}
+
+@end

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

@@ -333,3 +333,7 @@
 "File_upload_path_way"   = "文件默认上传至:";
 "File_upload_path_check"   = "选择上传路径";
 "File_upload_path_new"   = "新建路径";
+"File_upload_path_new_check_tip"   = "选择备份路径:";
+"File_upload_path_new_name_tip"   = "新建文件夹名称:";
+"File_upload_path_new_input_tip"   = "请输入文件夹名称";
+