|
@@ -22,6 +22,8 @@
|
|
|
#import "videoPlayByAVPlayerViewController.h"
|
|
|
#import "audioPlayerViewController.h"
|
|
|
#import "imageDetailsScrollViewController.h"
|
|
|
+#import "searchBarThridTypeView.h"
|
|
|
+#import "NasSearchViewController.h"
|
|
|
|
|
|
@interface previewFileAndFolderSecondViewController ()<UITableViewDelegate,UITableViewDataSource,DZNEmptyDataSetSource, DZNEmptyDataSetDelegate>
|
|
|
{
|
|
@@ -36,6 +38,7 @@
|
|
|
@property(nonatomic,assign) BOOL isEditType;
|
|
|
@property(nonatomic,strong) editTypeHeadView*curEditTypeHeadView;
|
|
|
@property(nonatomic,strong) editTypeBottomView*curEditTypeBottomView;
|
|
|
+@property(nonatomic,strong) searchBarThridTypeView* searchBarThridTypeV;//
|
|
|
@property(nonatomic,strong) UIButton*uploadFileButton;
|
|
|
|
|
|
@property (nonatomic, strong) NSMutableArray*didSelectListArr;//选中的数据
|
|
@@ -111,13 +114,31 @@
|
|
|
}
|
|
|
};
|
|
|
|
|
|
+ _searchBarThridTypeV = [[searchBarThridTypeView alloc] init];
|
|
|
+ [self.view addSubview:_searchBarThridTypeV];
|
|
|
+
|
|
|
+ [_searchBarThridTypeV mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
|
+ make.top.equalTo(self.navBarBGView.mas_bottom).offset(10.f);
|
|
|
+ make.height.mas_equalTo(32.0);
|
|
|
+ make.left.mas_equalTo(20.0);
|
|
|
+ //make.right.mas_equalTo(-48.0);
|
|
|
+ make.right.mas_equalTo(-20.0);
|
|
|
+ }];
|
|
|
+
|
|
|
+#pragma mark 点击搜索
|
|
|
+ _searchBarThridTypeV.didClickBgFun = ^{
|
|
|
+ [weakSelf gotoSearchVCFun];
|
|
|
+ };
|
|
|
+
|
|
|
[self.view addSubview:self.tableView];
|
|
|
[self.tableView mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
|
make.left.mas_equalTo(0);
|
|
|
make.right.mas_equalTo(0);
|
|
|
//make.bottom.mas_equalTo(-(safeArea));
|
|
|
make.bottom.mas_equalTo(0);
|
|
|
- make.top.equalTo(self.navBarBGView.mas_bottom).offset(10.f);
|
|
|
+ //make.top.equalTo(self.navBarBGView.mas_bottom).offset(10.f);
|
|
|
+ make.top.equalTo(self.searchBarThridTypeV.mas_bottom).offset(10.f);
|
|
|
+
|
|
|
}];
|
|
|
|
|
|
//大+号
|
|
@@ -388,7 +409,8 @@
|
|
|
_curEditTypeHeadView.hidden = NO;
|
|
|
_curEditTypeBottomView.hidden = NO;
|
|
|
_uploadFileButton.hidden = YES;
|
|
|
-
|
|
|
+ self.searchBarThridTypeV.hidden = YES;
|
|
|
+
|
|
|
[self.tableView mas_remakeConstraints:^(MASConstraintMaker *make) {
|
|
|
make.left.mas_equalTo(0);
|
|
|
make.right.mas_equalTo(0);
|
|
@@ -412,12 +434,14 @@
|
|
|
_curEditTypeHeadView.hidden = YES;
|
|
|
_curEditTypeBottomView.hidden = YES;
|
|
|
_uploadFileButton.hidden = NO;
|
|
|
-
|
|
|
+ self.searchBarThridTypeV.hidden = NO;
|
|
|
+
|
|
|
[self.tableView mas_remakeConstraints:^(MASConstraintMaker *make) {
|
|
|
make.left.mas_equalTo(0);
|
|
|
make.right.mas_equalTo(0);
|
|
|
make.bottom.mas_equalTo(0);
|
|
|
- make.top.equalTo(self.navBarBGView.mas_bottom).offset(10.f);
|
|
|
+ //make.top.equalTo(self.navBarBGView.mas_bottom).offset(10.f);
|
|
|
+ make.top.equalTo(self.searchBarThridTypeV.mas_bottom).offset(10.f);
|
|
|
}];
|
|
|
}
|
|
|
|
|
@@ -826,4 +850,12 @@
|
|
|
|
|
|
[self getFileListFun];
|
|
|
}
|
|
|
+
|
|
|
+#pragma mark 点击了搜索
|
|
|
+- (void)gotoSearchVCFun
|
|
|
+{
|
|
|
+ NasSearchViewController *vc = [NasSearchViewController new];
|
|
|
+ [self.navigationController pushViewController:vc animated:YES];
|
|
|
+}
|
|
|
+
|
|
|
@end
|