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