File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed
TZImagePickerController/TZImagePickerController Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,11 @@ - (instancetype)init {
51
51
- (void )viewDidLoad {
52
52
[super viewDidLoad ];
53
53
self.needShowStatusBar = ![UIApplication sharedApplication ].statusBarHidden ;
54
- self.view .backgroundColor = [UIColor whiteColor ];
54
+ if (@available (iOS 13.0 , *)) {
55
+ self.view .backgroundColor = UIColor.tertiarySystemBackgroundColor ;
56
+ } else {
57
+ self.view .backgroundColor = [UIColor whiteColor ];
58
+ }
55
59
self.navigationBar .barStyle = UIBarStyleBlack;
56
60
self.navigationBar .translucent = YES ;
57
61
[TZImageManager manager ].shouldFixOrientation = NO ;
@@ -724,7 +728,11 @@ - (void)viewDidLoad {
724
728
[super viewDidLoad ];
725
729
[[PHPhotoLibrary sharedPhotoLibrary ] registerChangeObserver: self ];
726
730
self.isFirstAppear = YES ;
727
- self.view .backgroundColor = [UIColor whiteColor ];
731
+ if (@available (iOS 13.0 , *)) {
732
+ self.view .backgroundColor = UIColor.tertiarySystemBackgroundColor ;
733
+ } else {
734
+ self.view .backgroundColor = [UIColor whiteColor ];
735
+ }
728
736
729
737
TZImagePickerController *imagePickerVc = (TZImagePickerController *)self.navigationController ;
730
738
UIBarButtonItem *cancelItem = [[UIBarButtonItem alloc ] initWithTitle: imagePickerVc.cancelBtnTitleStr style: UIBarButtonItemStylePlain target: imagePickerVc action: @selector (cancelButtonClick )];
Original file line number Diff line number Diff line change @@ -82,7 +82,11 @@ - (void)viewDidLoad {
82
82
TZImagePickerController *tzImagePickerVc = (TZImagePickerController *)self.navigationController ;
83
83
_isSelectOriginalPhoto = tzImagePickerVc.isSelectOriginalPhoto ;
84
84
_shouldScrollToBottom = YES ;
85
- self.view .backgroundColor = [UIColor whiteColor ];
85
+ if (@available (iOS 13.0 , *)) {
86
+ self.view .backgroundColor = UIColor.tertiarySystemBackgroundColor ;
87
+ } else {
88
+ self.view .backgroundColor = [UIColor whiteColor ];
89
+ }
86
90
self.navigationItem .title = _model.name ;
87
91
UIBarButtonItem *cancelItem = [[UIBarButtonItem alloc ] initWithTitle: tzImagePickerVc.cancelBtnTitleStr style: UIBarButtonItemStylePlain target: tzImagePickerVc action: @selector (cancelButtonClick )];
88
92
[TZCommonTools configBarButtonItem: cancelItem tzImagePickerVc: tzImagePickerVc];
You can’t perform that action at this time.
0 commit comments