|
@@ -797,7 +797,7 @@ typedef NS_ENUM(NSInteger, CHOOSETYPE) {
|
|
|
self.downloadFileUrl = fileUrl;
|
|
|
// 保存到文件目录下
|
|
|
KSDocumentViewController *documentPickerVC = [[KSDocumentViewController alloc] initWithURL:fileUrl inMode:UIDocumentPickerModeExportToService];
|
|
|
- documentPickerVC.buttonColor = THEMECOLOR;
|
|
|
+ documentPickerVC.buttonColor = CLIENT_THEMECOLOR;
|
|
|
// 设置代理
|
|
|
documentPickerVC.delegate = self;
|
|
|
// 设置模态弹出方式
|
|
@@ -935,7 +935,7 @@ typedef NS_ENUM(NSInteger, CHOOSETYPE) {
|
|
|
self.isDownloadFile = YES;
|
|
|
self.downloadFileUrl = fileUrl;
|
|
|
KSDocumentViewController *documentPicker = [[KSDocumentViewController alloc] initWithURL:fileUrl inMode:UIDocumentPickerModeExportToService];
|
|
|
- documentPicker.buttonColor = THEMECOLOR;
|
|
|
+ documentPicker.buttonColor = CLIENT_THEMECOLOR;
|
|
|
documentPicker.delegate = self;
|
|
|
documentPicker.modalPresentationStyle = UIModalPresentationFormSheet;
|
|
|
[self presentViewController:documentPicker animated:YES completion:nil];
|
|
@@ -970,7 +970,7 @@ typedef NS_ENUM(NSInteger, CHOOSETYPE) {
|
|
|
self.fileChooseType = fileTyle;
|
|
|
NSArray *documentTypes = @[@"public.content", @"public.text", @"public.source-code", @"public.image", @"public.audio", @"public.audiovisual-content", @"com.adobe.pdf", @"com.apple.keynote.key", @"com.microsoft.word.doc", @"com.microsoft.excel.xls", @"com.microsoft.powerpoint.ppt"];
|
|
|
KSDocumentViewController *documentPickerViewController = [[KSDocumentViewController alloc] initWithDocumentTypes:documentTypes inMode:UIDocumentPickerModeImport];
|
|
|
- documentPickerViewController.buttonColor = THEMECOLOR;
|
|
|
+ documentPickerViewController.buttonColor = CLIENT_THEMECOLOR;
|
|
|
documentPickerViewController.delegate = self;
|
|
|
documentPickerViewController.modalPresentationStyle = UIModalPresentationFullScreen;
|
|
|
[self presentViewController:documentPickerViewController animated:YES completion:nil];
|
|
@@ -1690,7 +1690,7 @@ typedef NS_ENUM(NSInteger, CHOOSETYPE) {
|
|
|
|
|
|
NSURL *descUrl = [urls firstObject];
|
|
|
NSString *desc = [descUrl absoluteString];
|
|
|
-
|
|
|
+ NSLog(@"@------- %zd",[UserDefaultObjectForKey(TENANT_ID) integerValue]);
|
|
|
if ([UserDefaultObjectForKey(TENANT_ID) integerValue] > 0) { // 机构
|
|
|
KSSourceDownloadAlert *alertView = [KSSourceDownloadAlert shareInstance];
|
|
|
[alertView configWithDesc:desc];
|