NCText.swift 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. //
  2. // NCText.swift
  3. // Nextcloud
  4. //
  5. // Created by Marino Faggiana on 24/07/17.
  6. // Copyright © 2017 TWS. All rights reserved.
  7. //
  8. import Foundation
  9. class NCText: UIViewController, UITextViewDelegate {
  10. @IBOutlet weak var cancelButton: UIBarButtonItem!
  11. @IBOutlet weak var nextButton: UIBarButtonItem!
  12. @IBOutlet weak var textView: UITextView!
  13. override func viewDidLoad() {
  14. super.viewDidLoad()
  15. self.navigationController?.navigationBar.topItem?.title = NSLocalizedString("_title_new_text_file_", comment: "")
  16. self.navigationController?.navigationBar.barTintColor = NCBrandColor.sharedInstance.brand
  17. self.navigationController?.navigationBar.tintColor = NCBrandColor.sharedInstance.navigationBarText
  18. self.navigationController?.navigationBar.titleTextAttributes = [NSForegroundColorAttributeName: NCBrandColor.sharedInstance.navigationBarText]
  19. cancelButton.title = NSLocalizedString("_cancel_", comment: "")
  20. nextButton.title = NSLocalizedString("_next_", comment: "")
  21. }
  22. override func viewWillAppear(_ animated: Bool) {
  23. super.viewWillAppear(animated)
  24. }
  25. }