Commit d75ba136664916661fbd3a9f77ca0cee561a6730

Authored by 梁星国
1 parent 14e5c624

提交更改

CNLiveICloudPicker.podspec
@@ -16,7 +16,7 @@ Pod::Spec.new do |s| @@ -16,7 +16,7 @@ Pod::Spec.new do |s|
16 # 16 #
17 17
18 s.name = "CNLiveICloudPicker" # 项目名称 18 s.name = "CNLiveICloudPicker" # 项目名称
19 - s.version = "0.0.1" # 版本号 与 你仓库的 标签号 对应 19 + s.version = "0.0.2" # 版本号 与 你仓库的 标签号 对应
20 s.summary = "iCloud选择器" # 项目简介 20 s.summary = "iCloud选择器" # 项目简介
21 21
22 # This description is used to generate tags and improve search results. 22 # This description is used to generate tags and improve search results.
CNLiveICloudPicker/CNICloudDocumentPickerController.m
@@ -8,7 +8,9 @@ @@ -8,7 +8,9 @@
8 8
9 #import "CNICloudDocumentPickerController.h" 9 #import "CNICloudDocumentPickerController.h"
10 10
11 -@interface CNICloudDocumentPickerController () 11 +@interface CNICloudDocumentPickerController (){
  12 + UIColor *_defultColor;
  13 +}
12 14
13 @end 15 @end
14 16
@@ -24,10 +26,17 @@ @@ -24,10 +26,17 @@
24 26
25 - (void)viewWillAppear:(BOOL)animated { 27 - (void)viewWillAppear:(BOOL)animated {
26 [super viewWillAppear:animated]; 28 [super viewWillAppear:animated];
  29 + if (self.themeColor) {
  30 + _defultColor = [UITabBar appearance].tintColor;
  31 + [self configuraThemeColor:self.themeColor];
  32 + }
27 } 33 }
28 34
29 - (void)viewWillDisappear:(BOOL)animated { 35 - (void)viewWillDisappear:(BOOL)animated {
30 [super viewWillDisappear:animated]; 36 [super viewWillDisappear:animated];
  37 + if (_defultColor) {
  38 + [self configuraThemeColor:_defultColor];
  39 + }
31 } 40 }
32 41
33 /** 设置主题颜色 */ 42 /** 设置主题颜色 */
CNLiveICloudPicker/CNICloudDocumentPickerManager.h
@@ -7,11 +7,21 @@ @@ -7,11 +7,21 @@
7 // 7 //
8 8
9 #import <Foundation/Foundation.h> 9 #import <Foundation/Foundation.h>
  10 +#import "CNICloudDocumentPickerController.h"
10 11
11 NS_ASSUME_NONNULL_BEGIN 12 NS_ASSUME_NONNULL_BEGIN
12 13
  14 +typedef NS_ENUM(NSUInteger, CNICloudDocumentType) {
  15 + CNICloudDocumentTypeUrl, //
  16 + CNICloudDocumentTypeUrls,
  17 + CNICloudDocumentTypeUTIs,
  18 +} NS_ENUM_AVAILABLE_IOS(8_0) __TVOS_PROHIBITED;
  19 +
  20 +
13 @interface CNICloudDocumentPickerManager : NSObject 21 @interface CNICloudDocumentPickerManager : NSObject
14 22
  23 +
  24 +
15 @end 25 @end
16 26
17 NS_ASSUME_NONNULL_END 27 NS_ASSUME_NONNULL_END
CNLiveICloudPicker/CNICloudDocumentPickerManager.m
@@ -7,9 +7,13 @@ @@ -7,9 +7,13 @@
7 // 7 //
8 8
9 #import "CNICloudDocumentPickerManager.h" 9 #import "CNICloudDocumentPickerManager.h"
  10 +#import "CNICloudDocumentPickerController.h"
  11 +
10 12
11 @implementation CNICloudDocumentPickerManager 13 @implementation CNICloudDocumentPickerManager
12 14
13 15
14 16
  17 +
  18 +
15 @end 19 @end