Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let configuration = ParseClientConfiguration
- {
- $0.applicationId = "..."
- $0.clientKey = "..."
- $0.server = "..."
- }
- Parse.enableLocalDatastore()
- Parse.initialize(with: configuration)
- ...
- func blancoUser() {
- let object = PFObject(className: "UserData")
- object["id"] = (UUID().uuidString)
- object["LoginName"] = "userName"
- object["PinCode"] = "00000"
- object["ScreenName"] = "test"
- object["YearOfBirth"] = 0
- object.pinInBackground()
- }
- ...
- let query = PFQuery(className: "UserData")
- var users:[UserData] = [UserData]()
- query.fromLocalDatastore()
- query.findObjectsInBackground { (objects: [PFObject]?, error: Error?) in
- if let error = error {
- print(error.localizedDescription)
- } else if let objects = objects
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement