Преглед изворни кода

1.下载预览选择磁盘点击优化

huangxiaodong пре 1 година
родитељ
комит
593e205c95

+ 15 - 3
创维盒子/双子星云手机/Class/Set/uploadFile/downLoadFile/downLoadPreviewViewController.m

@@ -17,6 +17,9 @@
 #import "diskListTableView.h"
 
 @interface downLoadPreviewViewController ()<UITableViewDelegate,UITableViewDataSource,DZNEmptyDataSetSource, DZNEmptyDataSetDelegate>
+{
+    UIButton *tapBtn;
+}
 @property (nonatomic, strong) UITableView *tableView;
 
 @property (strong, nonatomic) UILabel *MytitleLabel;
@@ -117,7 +120,7 @@
     [self.navBarBGView addSubview:selectTip];
     self.selectTip = selectTip;
     
-    UIButton *tapBtn = [UIButton buttonWithType:UIButtonTypeCustom];
+    tapBtn = [UIButton buttonWithType:UIButtonTypeCustom];
     tapBtn.backgroundColor = [UIColor clearColor];
     tapBtn.translatesAutoresizingMaskIntoConstraints = NO;
     [tapBtn addTarget:self action:@selector(selectDiskAction:) forControlEvents:UIControlEventTouchUpInside];
@@ -144,11 +147,13 @@
     
     
     [_rightButton mas_makeConstraints:^(MASConstraintMaker *make) {
-        make.width.mas_equalTo(120);
+        make.width.mas_equalTo(90);
         make.height.mas_equalTo(40);
         make.right.mas_equalTo(-15);
         make.centerY.mas_equalTo(self.titleLabel.mas_centerY);
     }];
+    
+    //_rightButton.backgroundColor = [UIColor redColor];
 }
 
 
@@ -361,11 +366,18 @@
     //self.MytitleLabel.backgroundColor = [UIColor greenColor];
     
     [self.selectTip mas_makeConstraints:^(MASConstraintMaker *make) {
-        make.left.mas_equalTo(self.MytitleLabel.mas_right).offset(2);
+        make.left.mas_equalTo(self.MytitleLabel.mas_right).offset(0);
         make.centerY.mas_equalTo(self.backBtn.mas_centerY);
         make.width.mas_equalTo(15);
         make.height.mas_equalTo(15);
     }];
+    
+    [tapBtn mas_remakeConstraints:^(MASConstraintMaker *make) {
+        make.centerX.mas_equalTo(self.navBarBGView.mas_centerX);
+        make.centerY.mas_equalTo(self.backBtn.mas_centerY);
+        make.width.mas_equalTo(curWidth+15);
+        make.height.mas_equalTo(30);
+    }];
 }
 
 #pragma mark 选择硬盘

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

@@ -387,3 +387,4 @@
 "disk_insertion_pop_tip_sub1" = "01桌面";
 "disk_insertion_pop_tip_sub2" = "02文件管理";
 "disk_insertion_pop_tip_sub3" = "03文件设置";
+"upload_file_and_not_path_tip" = "磁盘路径不存在,请检查磁盘是否正常连接";