1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- //
- // LCTZImageConfigHelper.m
- // LiveChat
- //
- // Created by 张灿 on 2018/8/28.
- // Copyright © 2018年 caicai. All rights reserved.
- //
- #import "LCTZImageConfigHelper.h"
- @implementation LCTZImageConfigHelper
- + (void)setDefaultTZImageConfig:(TZImagePickerController*)imagePickerVc{
- imagePickerVc.allowPickingGif = NO;//支持GIF图
- imagePickerVc.statusBarStyle = UIStatusBarStyleDefault;
- imagePickerVc.navigationBar.barTintColor = [UIColor whiteColor];
- imagePickerVc.navigationBar.tintColor = LZ273145Color;
- imagePickerVc.navigationBar.translucent = NO;
- imagePickerVc.naviTitleFont = LCBFont17;
- imagePickerVc.naviTitleColor = LZ273145Color;
- imagePickerVc.barItemTextFont = LCFont15;
- imagePickerVc.barItemTextColor = LZ273145Color;
-
- imagePickerVc.iconThemeColor = ZYGradientTwoColor;
- imagePickerVc.showPhotoCannotSelectLayer = YES;
- imagePickerVc.cannotSelectLayerColor = [[UIColor whiteColor] colorWithAlphaComponent:0.8];
- [imagePickerVc setPhotoPickerPageUIConfigBlock:^(UICollectionView *collectionView, UIView *bottomToolBar, UIButton *previewButton, UIButton *originalPhotoButton, UILabel *originalPhotoLabel, UIButton *doneButton, UIImageView *numberImageView, UILabel *numberLabel, UIView *divideLine) {
- [doneButton setTitleColor:LZ273145Color forState:UIControlStateDisabled];
- [doneButton setTitleColor:LZ273145Color forState:UIControlStateNormal];
- bottomToolBar.backgroundColor = [UIColor whiteColor];
- collectionView.backgroundColor = [UIColor whiteColor];
- [previewButton setTitleColor:LZ273145Color forState:(UIControlStateNormal)];
- originalPhotoLabel.textColor = LZ273145Color;
- [originalPhotoButton setTitleColor:LZ273145Color forState:UIControlStateNormal];
- [originalPhotoButton setTitleColor:LZ273145Color forState:UIControlStateSelected];
- divideLine.backgroundColor = [UIColor whiteColor];
- }];
-
- [imagePickerVc setPhotoPreviewPageUIConfigBlock:^(UICollectionView *collectionView, UIView *naviBar, UIButton *backButton, UIButton *selectButton, UILabel *indexLabel, UIView *toolBar, UIButton *originalPhotoButton, UILabel *originalPhotoLabel, UIButton *doneButton, UIImageView *numberImageView, UILabel *numberLabel) {
- [doneButton setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
- collectionView.backgroundColor = [UIColor whiteColor];
- }];
- }
- @end
|