FileBSImagePickerViewController.swift 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. //
  2. // FileBSImagePickerViewController.swift
  3. // O2Platform
  4. //
  5. // Created by 刘振兴 on 16/9/22.
  6. // Copyright © 2016年 zoneland. All rights reserved.
  7. //
  8. import UIKit
  9. import BSImagePicker
  10. class FileBSImagePickerViewController: BSImagePickerViewController {
  11. override func viewDidLoad() {
  12. super.viewDidLoad()
  13. self.navigationBar.isTranslucent = false
  14. self.navigationBar.barTintColor = navbar_barTint_color
  15. self.navigationBar.tintColor = navbar_tint_color
  16. self.navigationBar.titleTextAttributes = [NSAttributedString.Key.font:navbar_text_font,NSAttributedString.Key.foregroundColor:navbar_tint_color]
  17. //隐藏返回按钮文字
  18. let barItem = UIBarButtonItem.appearance()
  19. let offset = UIOffset(horizontal: -200, vertical: 0)
  20. barItem.setBackButtonTitlePositionAdjustment(offset, for: .default)
  21. barItem.setTitleTextAttributes([NSAttributedString.Key.font:navbar_item_font,NSAttributedString.Key.foregroundColor:navbar_tint_color], for:UIControl.State())
  22. // Do any additional setup after loading the view.
  23. }
  24. override var preferredStatusBarStyle : UIStatusBarStyle {
  25. return .lightContent
  26. }
  27. }