parse.com get value



  • I keep studying parse.com. Can you tell me how you can get the specific meaning of the field? For example, there is a function:

        let object = PFQuery(className: "MapObject")
        object.whereKey("User", equalTo: "Вася")
        object.findObjectsInBackgroundWithBlock { (objects, error) in
          print (objects)
        }
    

    She's pulling the whole object out to Vase's user. How do I get the meaning of a specific field? Like the Room field, the apartment number. If you walk into a manual with examples of work on a sweater in Russian, I'll be grateful.



  • Got it. Data can be obtained in the cycle:

          for object in objects! {
            let result = object["Room"] as! Int
          }
    



Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2