Commit d75ba136664916661fbd3a9f77ca0cee561a6730
1 parent
14e5c624
提交更改
Showing
4 changed files
with
25 additions
and
2 deletions
CNLiveICloudPicker.podspec
| ... | ... | @@ -16,7 +16,7 @@ Pod::Spec.new do |s| |
| 16 | 16 | # |
| 17 | 17 | |
| 18 | 18 | s.name = "CNLiveICloudPicker" # 项目名称 |
| 19 | - s.version = "0.0.1" # 版本号 与 你仓库的 标签号 对应 | |
| 19 | + s.version = "0.0.2" # 版本号 与 你仓库的 标签号 对应 | |
| 20 | 20 | s.summary = "iCloud选择器" # 项目简介 |
| 21 | 21 | |
| 22 | 22 | # This description is used to generate tags and improve search results. | ... | ... |
CNLiveICloudPicker/CNICloudDocumentPickerController.m
| ... | ... | @@ -8,7 +8,9 @@ |
| 8 | 8 | |
| 9 | 9 | #import "CNICloudDocumentPickerController.h" |
| 10 | 10 | |
| 11 | -@interface CNICloudDocumentPickerController () | |
| 11 | +@interface CNICloudDocumentPickerController (){ | |
| 12 | + UIColor *_defultColor; | |
| 13 | +} | |
| 12 | 14 | |
| 13 | 15 | @end |
| 14 | 16 | |
| ... | ... | @@ -24,10 +26,17 @@ |
| 24 | 26 | |
| 25 | 27 | - (void)viewWillAppear:(BOOL)animated { |
| 26 | 28 | [super viewWillAppear:animated]; |
| 29 | + if (self.themeColor) { | |
| 30 | + _defultColor = [UITabBar appearance].tintColor; | |
| 31 | + [self configuraThemeColor:self.themeColor]; | |
| 32 | + } | |
| 27 | 33 | } |
| 28 | 34 | |
| 29 | 35 | - (void)viewWillDisappear:(BOOL)animated { |
| 30 | 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 | 7 | // |
| 8 | 8 | |
| 9 | 9 | #import <Foundation/Foundation.h> |
| 10 | +#import "CNICloudDocumentPickerController.h" | |
| 10 | 11 | |
| 11 | 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 | 21 | @interface CNICloudDocumentPickerManager : NSObject |
| 14 | 22 | |
| 23 | + | |
| 24 | + | |
| 15 | 25 | @end |
| 16 | 26 | |
| 17 | 27 | NS_ASSUME_NONNULL_END | ... | ... |
CNLiveICloudPicker/CNICloudDocumentPickerManager.m