title: Coding array with NSCoder Swift
body: <p>I'm trying to implement the NSCoder, but am currently facing a stubborn issue.
  My goal is to save the array of strings via NSCoder to a local file and load it when the app opens next time.</p>
  
  <p>Here is the class i've created, but i'm not sure how i should handle the init and encoder functions:</p>
  
  <pre><code>class MyObject: NSObject, NSCoding {
  
  var storyPoints: [String] = []
  
  init(storyPoints : [String]) {
      self.storePoints = storePoints
  }
  
  
  required init(coder decoder: NSCoder) {
      super.init()
  
  ???
  
  }
  
  func encodeWithCoder(coder: NSCoder) {
  ???
  }
  </code></pre>
  
  <p>}</p>
  
  <p>Moreover, how do i access it in my view controller? where should i declare a path for saving the NSCoder? It's not really clear enough.</p>
  
  <p>Looking forward to any advices.</p>
  
  <p>Thank you.</p>