title: swift parse how to save objects in local datastore and show them?
body: <p>I've enabled <code>local datastore in app delegate</code>, I've did a query but how can i save that objects to view them if there's <code>no internet</code> ?</p>
  
  <p>Here is my query :</p>
  
  <pre><code>query.findObjectsInBackgroundWithBlock {
           (objects, error) -&gt; Void in
           if error == nil &amp;&amp; objects != nil
           {
              self.messages = objects!
              for object in objects! {
                 inboxphotos.append(object.objectForKey("photo") as! PFFile)
                 inboxusers.append(object.objectForKey("username") as! String) }
            }
  }
  </code></pre>
  
  <p>Now how can i do a <code>local query</code> to view this <code>objects</code> ?</p>