title: How do I save a var when my iOS app closes?
body: <p>In total I have 2 viewcontrolers. The App is the same like this guy made in a tutorial. <a href="https://www.youtube.com/watch?v=LrCqXmHenJY&amp;t=40s" rel="nofollow noreferrer">https://www.youtube.com/watch?v=LrCqXmHenJY&amp;t=40s</a></p>
  
  <p>To make a start, I made a var:</p>
  
  <pre><code>import UIKit
  
  var list = ["Task 1", "Task 2", "Task 3", "Task 4"]
  
  class FirstViewController: UIViewController , UITableViewDelegate, UITableViewDataSource{
  </code></pre>
  
  <p>My current problem is, that when I close the app no ToDo's which I created were saved. 
  What do I need to do to save my var list so that my ToDo-List isn't empty when I open it for the next time?</p>