SFeedbackViewController.swift 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. //
  2. // SFeedbackViewController.swift
  3. // O2Platform
  4. //
  5. // Created by 刘振兴 on 2016/10/13.
  6. // Copyright © 2016年 zoneland. All rights reserved.
  7. //
  8. import UIKit
  9. import EZSwiftExtensions
  10. import CocoaLumberjack
  11. class SFeedbackViewController: UIViewController {
  12. @IBOutlet weak var inputText: UITextView!
  13. @IBOutlet weak var feedbackButton: UIButton!
  14. override func viewDidLoad() {
  15. super.viewDidLoad()
  16. feedbackButton.layer.cornerRadius = 8
  17. feedbackButton.layer.masksToBounds = true
  18. inputText.backgroundColor = UIColor.white
  19. inputText.alpha = 1.0
  20. self.inputText.addDoneButton()
  21. self.hideKeyboardWhenTappedAround()
  22. }
  23. override func didReceiveMemoryWarning() {
  24. super.didReceiveMemoryWarning()
  25. // Dispose of any resources that can be recreated.
  26. }
  27. @IBAction func feedbackButtonAction(_ sender: UIButton) {
  28. DDLogDebug("提交信息到后台服务器")
  29. ProgressHUD.showSuccess("意见提交成功")
  30. }
  31. /*
  32. // MARK: - Navigation
  33. // In a storyboard-based application, you will often want to do a little preparation before navigation
  34. override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
  35. // Get the new view controller using segue.destinationViewController.
  36. // Pass the selected object to the new view controller.
  37. }
  38. */
  39. }