SFeedbackViewController.swift 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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 CocoaLumberjack
  10. class SFeedbackViewController: UIViewController {
  11. @IBOutlet weak var inputText: UITextView!
  12. @IBOutlet weak var feedbackButton: UIButton!
  13. override func viewDidLoad() {
  14. super.viewDidLoad()
  15. feedbackButton.layer.cornerRadius = 8
  16. feedbackButton.layer.masksToBounds = true
  17. inputText.backgroundColor = UIColor.white
  18. inputText.alpha = 1.0
  19. self.inputText.addDoneButton()
  20. self.hideKeyboardWhenTappedAround()
  21. }
  22. override func didReceiveMemoryWarning() {
  23. super.didReceiveMemoryWarning()
  24. // Dispose of any resources that can be recreated.
  25. }
  26. @IBAction func feedbackButtonAction(_ sender: UIButton) {
  27. DDLogDebug("提交信息到后台服务器")
  28. self.showSuccess(title: "意见提交成功")
  29. }
  30. /*
  31. // MARK: - Navigation
  32. // In a storyboard-based application, you will often want to do a little preparation before navigation
  33. override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
  34. // Get the new view controller using segue.destinationViewController.
  35. // Pass the selected object to the new view controller.
  36. }
  37. */
  38. }