File tree Expand file tree Collapse file tree
TZImagePickerController/TZImagePickerController Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -51,7 +51,11 @@ - (instancetype)init {
5151- (void )viewDidLoad {
5252 [super viewDidLoad ];
5353 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+ }
5559 self.navigationBar .barStyle = UIBarStyleBlack;
5660 self.navigationBar .translucent = YES ;
5761 [TZImageManager manager ].shouldFixOrientation = NO ;
@@ -724,7 +728,11 @@ - (void)viewDidLoad {
724728 [super viewDidLoad ];
725729 [[PHPhotoLibrary sharedPhotoLibrary ] registerChangeObserver: self ];
726730 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+ }
728736
729737 TZImagePickerController *imagePickerVc = (TZImagePickerController *)self.navigationController ;
730738 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 {
8282 TZImagePickerController *tzImagePickerVc = (TZImagePickerController *)self.navigationController ;
8383 _isSelectOriginalPhoto = tzImagePickerVc.isSelectOriginalPhoto ;
8484 _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+ }
8690 self.navigationItem .title = _model.name ;
8791 UIBarButtonItem *cancelItem = [[UIBarButtonItem alloc ] initWithTitle: tzImagePickerVc.cancelBtnTitleStr style: UIBarButtonItemStylePlain target: tzImagePickerVc action: @selector (cancelButtonClick )];
8892 [TZCommonTools configBarButtonItem: cancelItem tzImagePickerVc: tzImagePickerVc];
You can’t perform that action at this time.
0 commit comments