title: How to write an array to plist?
body: <p>I want to write an array to .plist but nothing is in .plist after I call the function.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>override func viewDidLoad() {
          super.viewDidLoad()
          var filepath = NSHomeDirectory().stringByAppendingString("/lacator.plist")
          let array:NSArray = ["b","a","n","d"]
          array.writeToFile(filepath, atomically: true)
  
  }
  </code></pre>
  
  <p>the file was placed :</p>
  
  <pre><code>/var/mobile/Containers/Data/Application/AE38143E-C398-4DA7-952D-4E1C903E9637/locator.plist
  </code></pre>
  
  <p>but I couldn't find the folder...</p>