title: Swift : Error: 'required' initializer 'init(coder:)' must be provided by subclass of 'UIView'
body: <p>I have a problem when I build my app in swift 2. Xcode says:</p>
  
  <blockquote>
    <p>'required' initializer 'init(coder:)' must be provided by subclass of 'UIView'</p>
  </blockquote>
  
  <p>This is the code of the class :</p>
  
  <pre><code>class creerQuestionnaire: UIView {
    @IBOutlet weak var nomQuestionnaire: UITextField!
    @IBOutlet weak var question: UITextField!
    @IBOutlet weak var reponse: UITextField!
    var QR: Questionnaire
  
    @IBAction func creerQuestion(sender: AnyObject) {
      QR.ajouterQuestion(question.text!, nouvReponse: reponse.text!)
    }
  }
  </code></pre>
  
  <p>and this is the class Questionnaire:</p>
  
  <pre><code>import Foundation
  
  class Questionnaire {
    var QR = [String(), String()]
  
    func getQuestion(nbQuestion: Int) -&gt;String {
      return QR[nbQuestion]
    }
  
    func getReponse(nbReponse: Int) -&gt;String {
      return QR[nbReponse]
    }
  
    func ajouterQuestion(nouvQuestion: String, nouvReponse: String) {
      QR += [nouvQuestion, nouvReponse]
    }
  }
  </code></pre>
  
  <p>Merci!</p>