LCTZImageConfigHelper.m 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. //
  2. // LCTZImageConfigHelper.m
  3. // LiveChat
  4. //
  5. // Created by 张灿 on 2018/8/28.
  6. // Copyright © 2018年 caicai. All rights reserved.
  7. //
  8. #import "LCTZImageConfigHelper.h"
  9. @implementation LCTZImageConfigHelper
  10. + (void)setDefaultTZImageConfig:(TZImagePickerController*)imagePickerVc{
  11. imagePickerVc.allowPickingGif = NO;//支持GIF图
  12. imagePickerVc.statusBarStyle = UIStatusBarStyleDefault;
  13. imagePickerVc.navigationBar.barTintColor = [UIColor whiteColor];
  14. imagePickerVc.navigationBar.tintColor = LZ273145Color;
  15. imagePickerVc.navigationBar.translucent = NO;
  16. imagePickerVc.naviTitleFont = LCBFont17;
  17. imagePickerVc.naviTitleColor = LZ273145Color;
  18. imagePickerVc.barItemTextFont = LCFont15;
  19. imagePickerVc.barItemTextColor = LZ273145Color;
  20. imagePickerVc.iconThemeColor = ZYGradientTwoColor;
  21. imagePickerVc.showPhotoCannotSelectLayer = YES;
  22. imagePickerVc.cannotSelectLayerColor = [[UIColor whiteColor] colorWithAlphaComponent:0.8];
  23. [imagePickerVc setPhotoPickerPageUIConfigBlock:^(UICollectionView *collectionView, UIView *bottomToolBar, UIButton *previewButton, UIButton *originalPhotoButton, UILabel *originalPhotoLabel, UIButton *doneButton, UIImageView *numberImageView, UILabel *numberLabel, UIView *divideLine) {
  24. [doneButton setTitleColor:LZ273145Color forState:UIControlStateDisabled];
  25. [doneButton setTitleColor:LZ273145Color forState:UIControlStateNormal];
  26. bottomToolBar.backgroundColor = [UIColor whiteColor];
  27. collectionView.backgroundColor = [UIColor whiteColor];
  28. [previewButton setTitleColor:LZ273145Color forState:(UIControlStateNormal)];
  29. originalPhotoLabel.textColor = LZ273145Color;
  30. [originalPhotoButton setTitleColor:LZ273145Color forState:UIControlStateNormal];
  31. [originalPhotoButton setTitleColor:LZ273145Color forState:UIControlStateSelected];
  32. divideLine.backgroundColor = [UIColor whiteColor];
  33. }];
  34. [imagePickerVc setPhotoPreviewPageUIConfigBlock:^(UICollectionView *collectionView, UIView *naviBar, UIButton *backButton, UIButton *selectButton, UILabel *indexLabel, UIView *toolBar, UIButton *originalPhotoButton, UILabel *originalPhotoLabel, UIButton *doneButton, UIImageView *numberImageView, UILabel *numberLabel) {
  35. [doneButton setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
  36. collectionView.backgroundColor = [UIColor whiteColor];
  37. }];
  38. }
  39. @end